pub struct CommandAuth {
pub required: Option<bool>,
pub scopes: Option<Vec<String>>,
}Expand description
Per-command auth overrides.
Fields§
§required: Option<bool>§scopes: Option<Vec<String>>Trait Implementations§
Source§impl Clone for CommandAuth
impl Clone for CommandAuth
Source§fn clone(&self) -> CommandAuth
fn clone(&self) -> CommandAuth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandAuth
impl Debug for CommandAuth
Source§impl<'de> Deserialize<'de> for CommandAuth
impl<'de> Deserialize<'de> for CommandAuth
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
Auto Trait Implementations§
impl Freeze for CommandAuth
impl RefUnwindSafe for CommandAuth
impl Send for CommandAuth
impl Sync for CommandAuth
impl Unpin for CommandAuth
impl UnsafeUnpin for CommandAuth
impl UnwindSafe for CommandAuth
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