#[non_exhaustive]pub struct InstallParams {
pub scopes: Vec<Scope>,
pub permissions: Permissions,
}Expand description
The settings of an in-app authorization link.
discord.js counterpart: ClientApplicationInstallParams.
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.scopes: Vec<Scope>The scopes to authorize.
permissions: PermissionsThe permissions requested for the bot role.
Implementations§
Source§impl InstallParams
impl InstallParams
Sourcepub fn new(
scopes: impl IntoIterator<Item = Scope>,
permissions: Permissions,
) -> Self
pub fn new( scopes: impl IntoIterator<Item = Scope>, permissions: Permissions, ) -> Self
An authorization link for scopes, requesting permissions for the bot role (only
used with the bot scope).
discord.js counterpart: the scopes and permissions of InviteGenerationOptions.
Trait Implementations§
Source§impl Clone for InstallParams
impl Clone for InstallParams
Source§impl Debug for InstallParams
impl Debug for InstallParams
Source§impl<'de> Deserialize<'de> for InstallParams
impl<'de> Deserialize<'de> for InstallParams
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 InstallParams
Source§impl PartialEq for InstallParams
impl PartialEq for InstallParams
Source§impl Serialize for InstallParams
impl Serialize for InstallParams
impl StructuralPartialEq for InstallParams
Auto Trait Implementations§
impl Forget for InstallParams
impl Freeze for InstallParams
impl Move for InstallParams
impl RefUnwindSafe for InstallParams
impl Send for InstallParams
impl Sync for InstallParams
impl Unpin for InstallParams
impl UnsafeUnpin for InstallParams
impl UnwindSafe for InstallParams
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