pub struct Integration {Show 16 fields
pub id: Snowflake,
pub name: String,
pub integration_type: String,
pub enabled: bool,
pub syncing: Option<bool>,
pub role_id: Option<String>,
pub enabled_emoticons: Option<bool>,
pub expire_behaviour: Option<u8>,
pub expire_grace_period: Option<u16>,
pub user: Option<User>,
pub account: IntegrationAccount,
pub synced_at: Option<DateTime<Utc>>,
pub subscriber_count: Option<f64>,
pub revoked: Option<bool>,
pub application: Option<Application>,
pub scopes: Option<Vec<String>>,
}Expand description
See https://discord.com/developers/docs/resources/guild#integration-object-integration-structure
Fields§
§id: Snowflake§name: String§integration_type: String§enabled: bool§syncing: Option<bool>§role_id: Option<String>§enabled_emoticons: Option<bool>§expire_behaviour: Option<u8>§expire_grace_period: Option<u16>§user: Option<User>§account: IntegrationAccount§synced_at: Option<DateTime<Utc>>§subscriber_count: Option<f64>§revoked: Option<bool>§application: Option<Application>§scopes: Option<Vec<String>>Trait Implementations§
Source§impl Clone for Integration
impl Clone for Integration
Source§fn clone(&self) -> Integration
fn clone(&self) -> Integration
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 Debug for Integration
impl Debug for Integration
Source§impl Default for Integration
impl Default for Integration
Source§fn default() -> Integration
fn default() -> Integration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Integration
impl<'de> Deserialize<'de> for Integration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Integration
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