Struct wca::VerifiedCommand
source · pub struct VerifiedCommand {
pub phrase: String,
pub subjects: Vec<Value>,
pub properties: HashMap<String, Value>,
}Expand description
Represents a grammatically correct command with a phrase descriptor, a list of command subjects, and a set of command options.
§Example:
VerifiedCommand
{
phrase : "command".to_string(),
subjects : vec![ Value::String( "subject_value".to_string() ), /* ... */ ],
properties : HashMap::from_iter(
[
( "prop_name".to_string(), Value::Number( 42.0 ) ),
/* ... */
])
};In the above example, a VerifiedCommand instance is created with the name “command”, a single subject “subject_value”, and one property “prop_name” with a typed values.
Fields§
§phrase: StringPhrase descriptor for command.
subjects: Vec<Value>Command subjects.
properties: HashMap<String, Value>Command options.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for VerifiedCommand
impl Send for VerifiedCommand
impl Sync for VerifiedCommand
impl Unpin for VerifiedCommand
impl UnwindSafe for VerifiedCommand
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