pub struct NumCommands {
pub id: Uuid,
pub args: Vec<Value>,
pub cmd_ignore: Value,
pub cmd_result: Value,
pub command: String,
pub help: String,
pub namespace: String,
pub extensions: Extensions,
}Expand description
§EntityType NumCommands
§Fully Qualified Namespace
reactive_graph::command::NumCommands
§Description
The number of commands
§Components
| Component | Description | Properties |
|---|---|---|
reactive_graph::command::Command | A command which can be executed. The command has a name and can have command arguments. |
|
§Properties from components
- args
- cmd_ignore
- cmd_result
- command
- help
- namespace
§JSON Schema
Fields§
§id: Uuid§args: Vec<Value>§cmd_ignore: Value§cmd_result: Value§Property cmd_result
The result of the command
Data Type: Any
Socket Type: Output
Mutability: Immutable
command: String§help: String§Property help
Help text which explains the command.
Data Type: String
Socket Type: None
Mutability: Immutable
namespace: String§extensions: ExtensionsImplementations§
Source§impl NumCommands
impl NumCommands
Sourcepub fn builder() -> NumCommandsBuilder<((), (), (), (), (), (), (), ())>
pub fn builder() -> NumCommandsBuilder<((), (), (), (), (), (), (), ())>
Create a builder for building NumCommands.
On the builder, call .id(...)(optional), .args(...), .cmd_ignore(...), .cmd_result(...), .command(...), .help(...), .namespace(...), .extensions(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of NumCommands.
Source§impl NumCommands
impl NumCommands
pub fn new( args: Vec<Value>, cmd_ignore: Value, cmd_result: Value, command: String, help: String, namespace: String, ) -> Self
pub fn new_with_id( id: Uuid, args: Vec<Value>, cmd_ignore: Value, cmd_result: Value, command: String, help: String, namespace: String, ) -> Self
pub fn new_with_extensions( id: Uuid, args: Vec<Value>, cmd_ignore: Value, cmd_result: Value, command: String, help: String, namespace: String, extensions: Extensions, ) -> Self
pub fn id(&self) -> Uuid
Sourcepub fn cmd_ignore(&self) -> Value
pub fn cmd_ignore(&self) -> Value
Sourcepub fn set_cmd_ignore(&mut self, cmd_ignore: Value)
pub fn set_cmd_ignore(&mut self, cmd_ignore: Value)
Sourcepub fn cmd_result(&self) -> Value
pub fn cmd_result(&self) -> Value
§Property cmd_result
The result of the command
Data Type: Any
Socket Type: Output
Mutability: Immutable
Sourcepub fn help(&self) -> String
pub fn help(&self) -> String
§Property help
Help text which explains the command.
Data Type: String
Socket Type: None
Mutability: Immutable
pub fn properties(&self) -> PropertyInstances
pub fn extensions(&self) -> Extensions
Trait Implementations§
Source§impl Clone for NumCommands
impl Clone for NumCommands
Source§fn clone(&self) -> NumCommands
fn clone(&self) -> NumCommands
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Command for NumCommands
impl Command for NumCommands
Source§fn cmd_ignore(&self) -> Value
fn cmd_ignore(&self) -> Value
Source§fn set_cmd_ignore(&mut self, cmd_ignore: Value)
fn set_cmd_ignore(&mut self, cmd_ignore: Value)
Source§fn cmd_result(&self) -> Value
fn cmd_result(&self) -> Value
§Property cmd_result
The result of the command
Data Type: Any
Socket Type: Output
Mutability: Immutable
Source§impl Debug for NumCommands
impl Debug for NumCommands
Source§impl<'de> Deserialize<'de> for NumCommands
impl<'de> Deserialize<'de> for NumCommands
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>,
Source§impl From<NumCommands> for EntityInstance
impl From<NumCommands> for EntityInstance
Source§fn from(num_commands: NumCommands) -> Self
fn from(num_commands: NumCommands) -> Self
Source§impl PartialEq for NumCommands
impl PartialEq for NumCommands
Source§impl Serialize for NumCommands
impl Serialize for NumCommands
Source§impl TryFrom<EntityInstance> for NumCommands
impl TryFrom<EntityInstance> for NumCommands
impl Eq for NumCommands
impl StructuralPartialEq for NumCommands
Auto Trait Implementations§
impl Freeze for NumCommands
impl !RefUnwindSafe for NumCommands
impl Send for NumCommands
impl Sync for NumCommands
impl Unpin for NumCommands
impl UnwindSafe for NumCommands
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more