pub struct CommandExposure {
pub name: &'static str,
pub exposure: Exposure,
pub mutates: bool,
}Expand description
The authority for one subcommand of an action.
Fields§
§name: &'static strThe subcommand name as it travels in the action’s payload.
exposure: ExposureWho may call this subcommand.
mutates: boolWhether this subcommand changes stored state or the machine.
Implementations§
Trait Implementations§
Source§impl Clone for CommandExposure
impl Clone for CommandExposure
impl Copy for CommandExposure
Source§impl Debug for CommandExposure
impl Debug for CommandExposure
impl Eq for CommandExposure
Source§impl PartialEq for CommandExposure
impl PartialEq for CommandExposure
impl StructuralPartialEq for CommandExposure
Auto Trait Implementations§
impl Forget for CommandExposure
impl Freeze for CommandExposure
impl Move for CommandExposure
impl RefUnwindSafe for CommandExposure
impl Send for CommandExposure
impl Sync for CommandExposure
impl Unpin for CommandExposure
impl UnsafeUnpin for CommandExposurewhere
&'static str: UnsafeUnpin,
impl UnwindSafe for CommandExposurewhere
&'static str: UnwindSafe,
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