pub struct CommandInfo<'a> {
pub name: &'a str,
pub description: &'a str,
}Expand description
A registered command and the description shown in platform command menus
Fields§
§name: &'a strCommand name, without any prefix or slash
description: &'a strDescription, or an empty string when none was given
Trait Implementations§
Source§impl<'a> Clone for CommandInfo<'a>
impl<'a> Clone for CommandInfo<'a>
Source§fn clone(&self) -> CommandInfo<'a>
fn clone(&self) -> CommandInfo<'a>
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 moreimpl<'a> Copy for CommandInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandInfo<'a>
impl<'a> RefUnwindSafe for CommandInfo<'a>
impl<'a> Send for CommandInfo<'a>
impl<'a> Sync for CommandInfo<'a>
impl<'a> Unpin for CommandInfo<'a>
impl<'a> UnsafeUnpin for CommandInfo<'a>
impl<'a> UnwindSafe for CommandInfo<'a>
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