Struct serenity::builder::CreateApplicationCommandPermissionsData [−][src]
Expand description
A builder for creating several ApplicationCommandPermissionData
.
Tuple Fields
0: HashMap<&'static str, Value>
Implementations
pub fn create_permission<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissionData) -> &mut CreateApplicationCommandPermissionData,
pub fn create_permission<F>(&mut self, f: F) -> &mut Self where
F: FnOnce(&mut CreateApplicationCommandPermissionData) -> &mut CreateApplicationCommandPermissionData,
Creates a permission for the application command.
pub fn add_permission(
&mut self,
permission: CreateApplicationCommandPermissionData
) -> &mut Self
pub fn add_permission(
&mut self,
permission: CreateApplicationCommandPermissionData
) -> &mut Self
Adds a permission for the application command.
pub fn set_permissions(
&mut self,
permissions: Vec<CreateApplicationCommandPermissionData>
) -> &mut Self
pub fn set_permissions(
&mut self,
permissions: Vec<CreateApplicationCommandPermissionData>
) -> &mut Self
Sets permissions for the application command.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more