Struct twilight_model::guild::GuildIntegration
source · pub struct GuildIntegration {Show 17 fields
pub account: IntegrationAccount,
pub application: Option<IntegrationApplication>,
pub enable_emoticons: Option<bool>,
pub enabled: Option<bool>,
pub expire_behavior: Option<IntegrationExpireBehavior>,
pub expire_grace_period: Option<u64>,
pub guild_id: Option<Id<GuildMarker>>,
pub id: Id<IntegrationMarker>,
pub kind: String,
pub name: String,
pub revoked: Option<bool>,
pub role_id: Option<Id<RoleMarker>>,
pub scopes: Option<Vec<String>>,
pub subscriber_count: Option<u64>,
pub synced_at: Option<Timestamp>,
pub syncing: Option<bool>,
pub user: Option<User>,
}Fields§
§account: IntegrationAccount§application: Option<IntegrationApplication>§enable_emoticons: Option<bool>§enabled: Option<bool>Whether the integration has been enabled.
May be provided on some non-Discord application integrations.
expire_behavior: Option<IntegrationExpireBehavior>§expire_grace_period: Option<u64>§guild_id: Option<Id<GuildMarker>>§id: Id<IntegrationMarker>§kind: String§name: String§revoked: Option<bool>§role_id: Option<Id<RoleMarker>>§scopes: Option<Vec<String>>An array of OAuth2 scopes which the application has been authorized for.
subscriber_count: Option<u64>§synced_at: Option<Timestamp>§syncing: Option<bool>§user: Option<User>Trait Implementations§
source§impl Clone for GuildIntegration
impl Clone for GuildIntegration
source§fn clone(&self) -> GuildIntegration
fn clone(&self) -> GuildIntegration
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 GuildIntegration
impl Debug for GuildIntegration
source§impl<'de> Deserialize<'de> for GuildIntegration
impl<'de> Deserialize<'de> for GuildIntegration
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
source§impl Hash for GuildIntegration
impl Hash for GuildIntegration
source§impl PartialEq<GuildIntegration> for GuildIntegration
impl PartialEq<GuildIntegration> for GuildIntegration
source§fn eq(&self, other: &GuildIntegration) -> bool
fn eq(&self, other: &GuildIntegration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.