Enum trycmd::schema::CommandStatus
source · pub enum CommandStatus {
Success,
Failed,
Interrupted,
Skipped,
Code(i32),
}
Expand description
Expected status for command
Variants
Trait Implementations
sourceimpl Clone for CommandStatus
impl Clone for CommandStatus
sourcefn clone(&self) -> CommandStatus
fn clone(&self) -> CommandStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CommandStatus
impl Debug for CommandStatus
sourceimpl Default for CommandStatus
impl Default for CommandStatus
sourceimpl<'de> Deserialize<'de> for CommandStatus
impl<'de> Deserialize<'de> for CommandStatus
sourcefn 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
sourceimpl FromStr for CommandStatus
impl FromStr for CommandStatus
sourceimpl JsonSchema for CommandStatus
impl JsonSchema for CommandStatus
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl PartialEq<CommandStatus> for CommandStatus
impl PartialEq<CommandStatus> for CommandStatus
sourcefn eq(&self, other: &CommandStatus) -> bool
fn eq(&self, other: &CommandStatus) -> bool
sourceimpl Serialize for CommandStatus
impl Serialize for CommandStatus
impl Copy for CommandStatus
impl Eq for CommandStatus
impl StructuralEq for CommandStatus
impl StructuralPartialEq for CommandStatus
Auto Trait Implementations
impl RefUnwindSafe for CommandStatus
impl Send for CommandStatus
impl Sync for CommandStatus
impl Unpin for CommandStatus
impl UnwindSafe for CommandStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.