pub enum Verb {
Show 19 variants
Learn,
Create,
Become,
Enter,
Leave,
Take,
Drop,
Move,
Look,
Transform,
Note,
Warp,
Program,
Use,
Cast,
Exit,
Save,
Load,
Debug,
}Expand description
The name of an Action, for use in parsing and help messages.
Variants§
Learn
Displays general information on Parade, or information on a specific action or topic.
Create
Creates a new vessel adjacent to the user’s.
Become
Takes control of an adjacent vessel.
Enter
Moves the controlled vessel into an adjacent vessel.
Leave
Moves the controlled vessel out of its parent, into its parent’s parent.
Take
Moves an adjacent vessel into the controlled vessel.
Drop
Moves a vessel inside the controlled vessel into the controlled vessel’s parent.
Move
Moves an adjacent vessel into another adjacent vessel.
Look
Displays a list of the adjacent vessels, or of the vessels inside an adjacent vessel.
Transform
Renames the controlled vessel.
Note
Assigns a description to the parent of the controlled vessel.
Warp
Moves the controlled vessel into another vessel, regardless of adjacency.
Program
Begins programming a task for an adjacent vessel.
Use
Executes an adjacent vessel’s program.
Cast
Executes a distant vessel’s program as another vessel.
Exit
Exits parade, or stops programming a vessel if the user is doing so.
Save
Saves the state of all vessels to a file.
Load
Loads the state of all vessels from a file.
Debug
Displays the state of all vessels as raw json data.
Implementations§
Source§impl Verb
impl Verb
Sourcepub fn short_help_text(&self) -> String
pub fn short_help_text(&self) -> String
Returns the short help text for the given Verb.
Sourcepub fn help_list_text() -> String
pub fn help_list_text() -> String
Returns the a basic help message, alongside the Self::short_help_text for every Verb.
Trait Implementations§
impl Copy for Verb
Source§impl<'de> Deserialize<'de> for Verb
impl<'de> Deserialize<'de> for Verb
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>,
impl Eq for Verb
Source§impl Ord for Verb
impl Ord for Verb
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Verb
impl PartialOrd for Verb
impl StructuralPartialEq for Verb
Auto Trait Implementations§
impl Freeze for Verb
impl RefUnwindSafe for Verb
impl Send for Verb
impl Sync for Verb
impl Unpin for Verb
impl UnsafeUnpin for Verb
impl UnwindSafe for Verb
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more