[−][src]Enum yy_boss::cli::input::ResourceCommandType
The command type to run.
Variants
Add(NewResource)
Adds a resource to the project.
Errors
If there is a resource by the name already, this command will abort and return an error.
Returns
If it succeeds, it will return without any extra data, like a void
.
Removes and returns the resource.
Errors
If there isn't a resource by that name of the type given, it will return an error.
Returns
If this command succeeds, it will return the resource and its associated data after having removed it.
Fields of Remove
identifier: String
The name of the resource to remove.
Renames a resource.
Errors
If there isn't a resource by that name of the type given, it will return an error.
Returns
Returns a CommandOutput
with no additional data on success.
Returns a copy of a resource.
Errors
If there isn't a resource by the given name of the given type, an error will be returned.
Returns
If this command succeeds, it will return a copy of the resource. This command will not mutate any data in the project.
Fields of Get
identifier: String
The name of the resource to get.
Returns a copy of a resource's associated data as SerializedData in a presentable form. This generally means making keys in HashMaps JSON compatible. Further engineering work is needed to clarify this.
If the associated data for a given identifier has not been loaded, it will be loaded.
Errors
If there isn't a resource by the given name of the given type, an error will be returned. If there is an error loading the resource's associated data, an error will be returned.
Returns
If this command succeeds, it will return a copy of the resource.
Fields of GetAssociatedData
Returns a boolean indicating if a resource of the given name and given type exists.
This command is a shortcut for performance reasons over Get
, since no string writing and
serialization/deserialization will be required.
Errors
This command is infallible.
Returns
This command will return true
if a resource of the given name and given type exists,
and false
otherwise.
Fields of Exists
identifier: String
The name of the resource to check if it exists.
Trait Implementations
impl Clone for ResourceCommandType
[src]
pub fn clone(&self) -> ResourceCommandType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ResourceCommandType
[src]
impl<'de> Deserialize<'de> for ResourceCommandType
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for ResourceCommandType
[src]
impl PartialEq<ResourceCommandType> for ResourceCommandType
[src]
pub fn eq(&self, other: &ResourceCommandType) -> bool
[src]
pub fn ne(&self, other: &ResourceCommandType) -> bool
[src]
impl Serialize for ResourceCommandType
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for ResourceCommandType
[src]
impl StructuralPartialEq for ResourceCommandType
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResourceCommandType
[src]
impl Send for ResourceCommandType
[src]
impl Sync for ResourceCommandType
[src]
impl Unpin for ResourceCommandType
[src]
impl UnwindSafe for ResourceCommandType
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,