Struct discord_flows::model::Integration
source · pub struct Integration {Show 16 fields
pub id: IntegrationId,
pub guild_id: GuildId,
pub account: IntegrationAccount,
pub enabled: bool,
pub expire_behaviour: Option<IntegrationExpireBehaviour>,
pub expire_grace_period: Option<u64>,
pub kind: String,
pub name: String,
pub role_id: Option<RoleId>,
pub synced_at: Option<Timestamp>,
pub syncing: Option<bool>,
pub user: Option<User>,
pub enable_emoticons: Option<bool>,
pub subscriber_count: Option<u64>,
pub revoked: Option<bool>,
pub application: Option<IntegrationApplication>,
}
Expand description
Various information about integrations.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: IntegrationId
§guild_id: GuildId
§account: IntegrationAccount
§enabled: bool
§expire_behaviour: Option<IntegrationExpireBehaviour>
§expire_grace_period: Option<u64>
§kind: String
§name: String
§role_id: Option<RoleId>
§synced_at: Option<Timestamp>
§syncing: Option<bool>
§user: Option<User>
§enable_emoticons: Option<bool>
§subscriber_count: Option<u64>
§revoked: Option<bool>
§application: Option<IntegrationApplication>
Trait Implementations§
source§impl Clone for Integration
impl Clone for Integration
source§fn clone(&self) -> Integration
fn clone(&self) -> Integration
Returns a copy 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 Debug for Integration
impl Debug for Integration
source§impl<'de> Deserialize<'de> for Integration
impl<'de> Deserialize<'de> for Integration
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Integration, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Integration, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Integration> for IntegrationId
impl From<Integration> for IntegrationId
source§fn from(integration: Integration) -> IntegrationId
fn from(integration: Integration) -> IntegrationId
Gets the Id of integration.
source§impl Serialize for Integration
impl Serialize for Integration
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 RefUnwindSafe for Integration
impl Send for Integration
impl Sync for Integration
impl Unpin for Integration
impl UnwindSafe for Integration
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