aboutsummaryrefslogtreecommitdiff
path: root/src/model/guild/integration.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-03-25 15:41:47 -0700
committerZeyla Hellyer <[email protected]>2017-03-25 15:41:47 -0700
commit9114963daf708cfaeaf54d8c788206ccfbae5df8 (patch)
tree08d6aba5b8ad40189b312865ac776bb6fa30c45d /src/model/guild/integration.rs
parentAdd slightly more documentation (diff)
downloadserenity-9114963daf708cfaeaf54d8c788206ccfbae5df8.tar.xz
serenity-9114963daf708cfaeaf54d8c788206ccfbae5df8.zip
Rework the models directory
Diffstat (limited to 'src/model/guild/integration.rs')
-rw-r--r--src/model/guild/integration.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/model/guild/integration.rs b/src/model/guild/integration.rs
new file mode 100644
index 0000000..d7f9967
--- /dev/null
+++ b/src/model/guild/integration.rs
@@ -0,0 +1,8 @@
+use ::model::{Integration, IntegrationId};
+
+impl From<Integration> for IntegrationId {
+ /// Gets the Id of integration.
+ fn from(integration: Integration) -> IntegrationId {
+ integration.id
+ }
+}