pub struct CommandTree {
pub nodes: Vec<CommandNode>,
}Expand description
Flattened command hierarchy. Always non-empty; the root command is at index 0.
Fields§
§nodes: Vec<CommandNode>Trait Implementations§
Source§impl Clone for CommandTree
impl Clone for CommandTree
Source§fn clone(&self) -> CommandTree
fn clone(&self) -> CommandTree
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandTree
impl Debug for CommandTree
Source§impl<'de> Deserialize<'de> for CommandTree
impl<'de> Deserialize<'de> for CommandTree
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandTree, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandTree, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromSchema for CommandTree
impl FromSchema for CommandTree
fn from_value(value: &SchemaValue) -> Result<CommandTree, FromSchemaError>
Source§impl IntoSchema for CommandTree
impl IntoSchema for CommandTree
fn type_id() -> TypeId
fn register_in(builder: &mut SchemaBuilder) -> SchemaType
fn to_value(&self) -> SchemaValue
Source§impl PartialEq for CommandTree
impl PartialEq for CommandTree
Source§impl Serialize for CommandTree
impl Serialize for CommandTree
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CommandTree
Auto Trait Implementations§
impl Freeze for CommandTree
impl RefUnwindSafe for CommandTree
impl Send for CommandTree
impl Sync for CommandTree
impl Unpin for CommandTree
impl UnsafeUnpin for CommandTree
impl UnwindSafe for CommandTree
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