pub struct CommandHelp { /* private fields */ }
Expand description
Human-readable description of a CommandRequest
.
Please see Help::command_helps()
for how to get this struct.
Implementations§
Source§impl CommandHelp
impl CommandHelp
Sourcepub fn command(&self) -> &CommandRequest
pub fn command(&self) -> &CommandRequest
The CommandRequest
.
Note that this may contain human-readable text
and may not be able to send to the SwitchBot API directly.
Sourcepub fn description(&self) -> &Markdown
pub fn description(&self) -> &Markdown
The human-readable description of the command()
.
Trait Implementations§
Source§impl Clone for CommandHelp
impl Clone for CommandHelp
Source§fn clone(&self) -> CommandHelp
fn clone(&self) -> CommandHelp
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommandHelp
impl Debug for CommandHelp
Auto Trait Implementations§
impl Freeze for CommandHelp
impl RefUnwindSafe for CommandHelp
impl Send for CommandHelp
impl Sync for CommandHelp
impl Unpin for CommandHelp
impl UnwindSafe for CommandHelp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.