#[non_exhaustive]pub struct Integration {Show 17 fields
pub id: IntegrationId,
pub name: String,
pub kind: String,
pub enabled: bool,
pub syncing: Option<bool>,
pub role_id: Option<RoleId>,
pub enable_emoticons: Option<bool>,
pub expire_behaviour: Option<IntegrationExpireBehaviour>,
pub expire_grace_period: Option<u64>,
pub user: Option<User>,
pub account: IntegrationAccount,
pub synced_at: Option<Timestamp>,
pub subscriber_count: Option<u64>,
pub revoked: Option<bool>,
pub application: Option<IntegrationApplication>,
pub scopes: Option<Vec<Scope>>,
pub guild_id: Option<GuildId>,
}
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
§name: String
§kind: String
§enabled: bool
§syncing: Option<bool>
§role_id: Option<RoleId>
§enable_emoticons: Option<bool>
§expire_behaviour: Option<IntegrationExpireBehaviour>
§expire_grace_period: Option<u64>
§user: Option<User>
§account: IntegrationAccount
§synced_at: Option<Timestamp>
§subscriber_count: Option<u64>
§revoked: Option<bool>
§application: Option<IntegrationApplication>
§scopes: Option<Vec<Scope>>
§guild_id: Option<GuildId>
Only present in IntegrationCreateEvent
and IntegrationUpdateEvent
.
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<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 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.
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