pub struct CompositeCommandSpecification {
pub name: String,
pub matcher: String,
pub documentation: String,
pub parts: Vec<PreCommandSpecification>,
pub default_inputs: Vec<CommandInput>,
pub router: fn(&String, &String, &Vec<PreCommandSpecification>) -> Result<Vec<String>, Diagnostic>,
pub example: String,
}Fields§
§name: String§matcher: String§documentation: String§parts: Vec<PreCommandSpecification>§default_inputs: Vec<CommandInput>§router: fn(&String, &String, &Vec<PreCommandSpecification>) -> Result<Vec<String>, Diagnostic>§example: StringTrait Implementations§
Source§impl Clone for CompositeCommandSpecification
impl Clone for CompositeCommandSpecification
Source§fn clone(&self) -> CompositeCommandSpecification
fn clone(&self) -> CompositeCommandSpecification
Returns a duplicate 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 moreSource§impl PartialEq for CompositeCommandSpecification
impl PartialEq for CompositeCommandSpecification
Source§fn eq(&self, other: &CompositeCommandSpecification) -> bool
fn eq(&self, other: &CompositeCommandSpecification) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CompositeCommandSpecification
impl StructuralPartialEq for CompositeCommandSpecification
Auto Trait Implementations§
impl Freeze for CompositeCommandSpecification
impl RefUnwindSafe for CompositeCommandSpecification
impl Send for CompositeCommandSpecification
impl Sync for CompositeCommandSpecification
impl Unpin for CompositeCommandSpecification
impl UnwindSafe for CompositeCommandSpecification
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.