#[non_exhaustive]pub struct IntegrationTypesConfig {
pub guild_install: Option<IntegrationTypeConfig>,
pub user_install: Option<IntegrationTypeConfig>,
}Expand description
The default install settings per installation context; the keys of
integration_types_config.
discord.js counterpart: APIApplicationIntegrationTypesConfigMap (discord-api-types).
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.guild_install: Option<IntegrationTypeConfig>For guild installs (key "0").
user_install: Option<IntegrationTypeConfig>For user installs (key "1").
Trait Implementations§
Source§impl Clone for IntegrationTypesConfig
impl Clone for IntegrationTypesConfig
Source§impl Debug for IntegrationTypesConfig
impl Debug for IntegrationTypesConfig
Source§impl Default for IntegrationTypesConfig
impl Default for IntegrationTypesConfig
Source§impl<'de> Deserialize<'de> for IntegrationTypesConfig
impl<'de> Deserialize<'de> for IntegrationTypesConfig
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
impl Eq for IntegrationTypesConfig
Source§impl PartialEq for IntegrationTypesConfig
impl PartialEq for IntegrationTypesConfig
Source§impl Serialize for IntegrationTypesConfig
impl Serialize for IntegrationTypesConfig
impl StructuralPartialEq for IntegrationTypesConfig
Auto Trait Implementations§
impl Freeze for IntegrationTypesConfig
impl RefUnwindSafe for IntegrationTypesConfig
impl Send for IntegrationTypesConfig
impl Sync for IntegrationTypesConfig
impl Unpin for IntegrationTypesConfig
impl UnsafeUnpin for IntegrationTypesConfig
impl UnwindSafe for IntegrationTypesConfig
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