[][src]Struct yy_boss::cli::input::ResourceCommand

pub struct ResourceCommand {
    pub command_type: ResourceCommandType,
    pub resource: Resource,
}

A resource command, which will allow users to read and write resources into the YypBoss.

The subtype of command, such as Add or Remove is indicated by the command_type subfield.

The Resource type to manipulate is given by the resource field.

Each resource paired with each command_type, indicates which of the optional fields is required. If an optional field is not given, but should have been, this command will abort.

Fields

command_type: ResourceCommandType

The command type for this ResourceCommand.

resource: Resource

The type of resource to interact with.

Trait Implementations

impl Clone for ResourceCommand[src]

impl Debug for ResourceCommand[src]

impl<'de> Deserialize<'de> for ResourceCommand[src]

impl Eq for ResourceCommand[src]

impl PartialEq<ResourceCommand> for ResourceCommand[src]

impl Serialize for ResourceCommand[src]

impl StructuralEq for ResourceCommand[src]

impl StructuralPartialEq for ResourceCommand[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,