pub struct CommandSpec {
pub id: String,
pub label: BTreeMap<String, String>,
pub icon: Option<String>,
pub confirm_text: Option<BTreeMap<String, String>>,
pub ack: AckStrategy,
pub system: bool,
/* private fields */
}Expand description
A command the FleetManager can invoke on this software (mirrors the Python
CommandSpec). The catalog of registered commands rides along with every
status snapshot under commands.
Fields§
§id: String§label: BTreeMap<String, String>Label per language ({"de": …, "en": …}).
icon: Option<String>§confirm_text: Option<BTreeMap<String, String>>§ack: AckStrategy§system: boolIssued by FleetManager workflows (e.g. licence delivery), not offered to
operators as a button. Advertised as "system": true.
Implementations§
Trait Implementations§
Source§impl Clone for CommandSpec
impl Clone for CommandSpec
Source§fn clone(&self) -> CommandSpec
fn clone(&self) -> CommandSpec
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CommandSpec
impl !RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl !UnwindSafe for CommandSpec
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