pub struct Operation { /* private fields */ }Expand description
One operation: one subcommand under one group, one request.
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn group(&self) -> &CommandName
pub fn group(&self) -> &CommandName
The group this operation is mounted under, as the user types it.
Sourcepub fn command(&self) -> &CommandName
pub fn command(&self) -> &CommandName
The subcommand name under that group, as the user types it.
pub fn method(&self) -> &Method
pub fn summary(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
pub fn params(&self) -> &[Param]
pub fn body(&self) -> &Body
pub fn effect(&self) -> Effect
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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