pub struct Command {
pub group: String,
pub name: String,
pub description: String,
pub platform: Option<String>,
pub steps: Vec<Step>,
}Expand description
[[command]] entry — a custom user subcommand built from step primitives.
Exposed at the CLI as krypt <group> <name>.
Fields§
§group: StringGroup bucket (e.g. menu, battery).
name: StringCommand name within the group.
description: StringHelp text shown by krypt <group> --help.
platform: Option<String>Optional OS gate.
steps: Vec<Step>Ordered execution steps.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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