pub struct MethodDef {
pub name: &'static str,
pub takes_value: bool,
}Expand description
Describes a single builder-chain method that a command accepts.
Used by the registry to validate .method() calls before dispatch.
Fields§
§name: &'static strThe method name (e.g. "text", "level", "append").
takes_value: boolWhether this method requires a value: .method(value) vs .flag.
Implementations§
Trait Implementations§
impl StructuralPartialEq for MethodDef
Auto Trait Implementations§
impl Freeze for MethodDef
impl RefUnwindSafe for MethodDef
impl Send for MethodDef
impl Sync for MethodDef
impl Unpin for MethodDef
impl UnsafeUnpin for MethodDef
impl UnwindSafe for MethodDef
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