pub struct CommandPreset {
pub name: String,
pub command: String,
}Expand description
A named starter command exposed in the TUI.
Fields§
§name: StringDisplay label.
command: StringShell-style command line.
Implementations§
Trait Implementations§
Source§impl Clone for CommandPreset
impl Clone for CommandPreset
Source§fn clone(&self) -> CommandPreset
fn clone(&self) -> CommandPreset
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 CommandPreset
impl Debug for CommandPreset
Source§impl<'de> Deserialize<'de> for CommandPreset
impl<'de> Deserialize<'de> for CommandPreset
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 CommandPreset
impl PartialEq for CommandPreset
Source§impl Serialize for CommandPreset
impl Serialize for CommandPreset
impl StructuralPartialEq for CommandPreset
Auto Trait Implementations§
impl Freeze for CommandPreset
impl RefUnwindSafe for CommandPreset
impl Send for CommandPreset
impl Sync for CommandPreset
impl Unpin for CommandPreset
impl UnsafeUnpin for CommandPreset
impl UnwindSafe for CommandPreset
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