pub struct CommandNode {Show 20 fields
pub id: CommandId,
pub origin: Origin,
pub path: Vec<String>,
pub invocation: String,
pub summary: String,
pub description: Option<String>,
pub runnable: bool,
pub arguments: Vec<ArgumentSpec>,
pub execution: Execution,
pub effect: Effect,
pub interactivity: Interactivity,
pub stability: Stability,
pub availability: Availability,
pub group: Option<String>,
pub tags: Vec<String>,
pub aliases: Vec<String>,
pub deprecation: Option<Deprecation>,
pub provenance: Provenance,
pub projections: Projections,
pub entrypoint: Option<bool>,
}Expand description
One command, from whichever program offers it.
Fields§
§id: CommandIdThe canonical identity.
origin: OriginWhich program runs it.
path: Vec<String>The words after the program’s own name.
invocation: StringThe command line a person types, rendered once here.
summary: StringOne line.
description: Option<String>The longer description, when the declaration carries one.
runnable: boolCan it be run on its own, or does it only group the commands under it?
arguments: Vec<ArgumentSpec>The arguments, in declaration order.
execution: ExecutionHow it is run.
effect: EffectWhat it changes.
interactivity: InteractivityHow it behaves towards a terminal.
stability: StabilityWhere it stands.
availability: AvailabilityWhere it means anything.
group: Option<String>The group a person finds it under, when the declaration has groups.
Free tags.
aliases: Vec<String>Other names that resolve to this node, declared once here and honoured by every projection that has a use for one.
deprecation: Option<Deprecation>Whether this is still the name to use.
provenance: ProvenanceWhere it came from.
projections: ProjectionsWhere it appears.
entrypoint: Option<bool>Is this command an entry point of its group — the one a newcomer is offered?
Implementations§
Trait Implementations§
Source§impl Clone for CommandNode
impl Clone for CommandNode
Source§fn clone(&self) -> CommandNode
fn clone(&self) -> CommandNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandNode
impl Debug for CommandNode
Source§impl<'de> Deserialize<'de> for CommandNode
impl<'de> Deserialize<'de> for CommandNode
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>,
impl Eq for CommandNode
Source§impl JsonSchema for CommandNode
impl JsonSchema for CommandNode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for CommandNode
impl PartialEq for CommandNode
Source§fn eq(&self, other: &CommandNode) -> bool
fn eq(&self, other: &CommandNode) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CommandNode
impl Serialize for CommandNode
impl StructuralPartialEq for CommandNode
Auto Trait Implementations§
impl Freeze for CommandNode
impl RefUnwindSafe for CommandNode
impl Send for CommandNode
impl Sync for CommandNode
impl Unpin for CommandNode
impl UnsafeUnpin for CommandNode
impl UnwindSafe for CommandNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.