pub struct CommandOption {
pub command: Option<String>,
pub label: Option<String>,
}Fields§
§command: Option<String>§label: Option<String>Implementations§
Source§impl CommandOption
impl CommandOption
pub fn new() -> CommandOption
Trait Implementations§
Source§impl Clone for CommandOption
impl Clone for CommandOption
Source§fn clone(&self) -> CommandOption
fn clone(&self) -> CommandOption
Returns a duplicate of the value. Read more
1.0.0 · 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 CommandOption
impl Debug for CommandOption
Source§impl Default for CommandOption
impl Default for CommandOption
Source§fn default() -> CommandOption
fn default() -> CommandOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandOption
impl<'de> Deserialize<'de> for CommandOption
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
Source§impl PartialEq for CommandOption
impl PartialEq for CommandOption
Source§impl Serialize for CommandOption
impl Serialize for CommandOption
impl StructuralPartialEq for CommandOption
Auto Trait Implementations§
impl Freeze for CommandOption
impl RefUnwindSafe for CommandOption
impl Send for CommandOption
impl Sync for CommandOption
impl Unpin for CommandOption
impl UnwindSafe for CommandOption
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