pub struct OperationSpec {
pub id: OperationId,
pub path: &'static str,
pub cmd: &'static str,
pub name: &'static str,
pub description: &'static str,
pub capability: OperationCapability,
pub exposure: OperationExposure,
pub read_only: bool,
pub destructive: bool,
pub feature: Option<&'static str>,
}Fields§
§id: OperationId§path: &'static str§cmd: &'static str§name: &'static str§description: &'static str§capability: OperationCapability§exposure: OperationExposure§read_only: bool§destructive: bool§feature: Option<&'static str>Implementations§
Source§impl OperationSpec
impl OperationSpec
pub fn cli_command(&self) -> String
Trait Implementations§
Source§impl Clone for OperationSpec
impl Clone for OperationSpec
impl Copy for OperationSpec
Auto Trait Implementations§
impl Forget for OperationSpec
impl Freeze for OperationSpec
impl Move for OperationSpec
impl RefUnwindSafe for OperationSpec
impl Send for OperationSpec
impl Sync for OperationSpec
impl Unpin for OperationSpec
impl UnsafeUnpin for OperationSpec
impl UnwindSafe for OperationSpec
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