pub struct CommandArgument {
pub name: String,
pub value: Option<CommandArgumentValue>,
}Fields§
§name: String§value: Option<CommandArgumentValue>Implementations§
Source§impl CommandArgument
impl CommandArgument
pub async fn as_arg<T: AsCommandArgument>(&self, ctx: &Context) -> T
Trait Implementations§
Source§impl Clone for CommandArgument
impl Clone for CommandArgument
Source§fn clone(&self) -> CommandArgument
fn clone(&self) -> CommandArgument
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 moreAuto Trait Implementations§
impl Freeze for CommandArgument
impl RefUnwindSafe for CommandArgument
impl Send for CommandArgument
impl Sync for CommandArgument
impl Unpin for CommandArgument
impl UnsafeUnpin for CommandArgument
impl UnwindSafe for CommandArgument
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