pub struct Argument {
pub name: &'static str,
pub value: Value,
pub feature: Option<&'static str>,
}Expand description
One argument a protocol-v2 command accepts.
Fields§
§name: &'static strThe name as it appears on the wire.
value: ValueWhether a value follows.
feature: Option<&'static str>The feature that must appear in the capability’s advertised value
before a client is allowed to send this argument, or None for the
arguments every v2 client may always send.
Trait Implementations§
impl Copy for Argument
impl Eq for Argument
impl StructuralPartialEq for Argument
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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