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: GuildIntegrationType,
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: GuildIntegrationType
§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 for GuildIntegration
impl PartialEq for GuildIntegration
Source§impl Serialize for GuildIntegration
impl Serialize for GuildIntegration
impl Eq for GuildIntegration
impl StructuralPartialEq for GuildIntegration
Auto Trait Implementations§
impl Freeze for GuildIntegration
impl RefUnwindSafe for GuildIntegration
impl Send for GuildIntegration
impl Sync for GuildIntegration
impl Unpin for GuildIntegration
impl UnwindSafe for GuildIntegration
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