pub struct Integration<'a> {Show 16 fields
pub id: Snowflake,
pub name: String,
pub integration_type: String,
pub enabled: bool,
pub syncing: Option<bool>,
pub role_id: Option<Snowflake>,
pub enable_emoticons: Option<bool>,
pub expire_behavior: Option<u8>,
pub expire_grace_period: Option<u32>,
pub user: Option<User<'a>>,
pub account: Option<IntegrationAccount>,
pub synced_at: Option<String>,
pub subscriber_count: Option<u32>,
pub revoked: Option<bool>,
pub application: Option<IntegrationApplication<'a>>,
pub scopes: Vec<String>,
}Expand description
A Discord integration.
Fields§
§id: SnowflakeIntegration ID.
name: StringIntegration name.
integration_type: StringIntegration type (twitch, youtube, discord, guild_subscription).
enabled: boolIs this integration enabled.
syncing: Option<bool>Is this integration syncing.
role_id: Option<Snowflake>ID that this integration uses for “subscribers”.
enable_emoticons: Option<bool>Whether emoticons should be synced.
expire_behavior: Option<u8>The behavior of expiring subscribers.
expire_grace_period: Option<u32>The grace period (in days) before expiring subscribers.
user: Option<User<'a>>User for this integration.
account: Option<IntegrationAccount>Integration account information.
synced_at: Option<String>When this integration was last synced (ISO8601 timestamp).
subscriber_count: Option<u32>How many subscribers this integration has.
revoked: Option<bool>Has this integration been revoked.
application: Option<IntegrationApplication<'a>>The bot/OAuth2 application for Discord integrations.
scopes: Vec<String>The scopes the application has been authorized for.
Trait Implementations§
Source§impl<'a> Clone for Integration<'a>
impl<'a> Clone for Integration<'a>
Source§fn clone(&self) -> Integration<'a>
fn clone(&self) -> Integration<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for Integration<'a>
impl<'a> Debug for Integration<'a>
Source§impl<'de, 'a> Deserialize<'de> for Integration<'a>
impl<'de, 'a> Deserialize<'de> for Integration<'a>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Integration<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Integration<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Serialize for Integration<'a>
impl<'a> Serialize for Integration<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for Integration<'a>
impl<'a> RefUnwindSafe for Integration<'a>
impl<'a> Send for Integration<'a>
impl<'a> Sync for Integration<'a>
impl<'a> Unpin for Integration<'a>
impl<'a> UnwindSafe for Integration<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more