diff options
| author | Zeyla Hellyer <[email protected]> | 2017-03-25 15:41:47 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-03-25 15:41:47 -0700 |
| commit | 9114963daf708cfaeaf54d8c788206ccfbae5df8 (patch) | |
| tree | 08d6aba5b8ad40189b312865ac776bb6fa30c45d /src/model/guild/integration.rs | |
| parent | Add slightly more documentation (diff) | |
| download | serenity-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.rs | 8 |
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 + } +} |