pub enum Instructions {
Interaction(Interaction),
Commands(Commands),
}Variants§
Interaction(Interaction)
Commands(Commands)
Implementations§
Source§impl Instructions
impl Instructions
pub fn from_commands( commands: CLICommands, schema: Schema, ) -> Result<Self, Box<dyn Error>>
Trait Implementations§
Source§impl Clone for Instructions
impl Clone for Instructions
Source§fn clone(&self) -> Instructions
fn clone(&self) -> Instructions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Instructions
impl Debug for Instructions
Source§impl From<Commands> for Instructions
impl From<Commands> for Instructions
Source§impl From<Interaction> for Instructions
impl From<Interaction> for Instructions
Source§fn from(value: Interaction) -> Self
fn from(value: Interaction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Instructions
impl RefUnwindSafe for Instructions
impl Send for Instructions
impl Sync for Instructions
impl Unpin for Instructions
impl UnwindSafe for Instructions
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