[−][src]Struct yy_boss::cli::input::NewResource
This struct describes the new data needed to Add
, Replace
, or Set
a resource
in the ResourceCommandType
.
The types of the Data required for new_resource
and associated_data
are written in the table
below for convenience, but for the absolute answer, look in the [resources_ext
] module.
Types of Each Field
Resource Type | new_resource | associated_data |
---|---|---|
Sprite | Sprite Yy File | HashMap <Frame Uuid , [SpriteImageBuffer ]> |
Object | Object Yy File | HashMap <EventType , String > |
Script | Script Yy File | String |
Shader | Shader Yy File | ShaderScriptType |
NB: Above, "Single-Void" means that a given Map must have only one key (if multiple are present,
the command will abort with an error), and the contents of the key do not matter. Using data
might
be a good idea for users, but any name is fine.
Fields
new_resource: SerializedData
This field must contain the Data of a Yy File to add for the given resource.
See the chart in NewResource
above for more details.
associated_data: SerializedData
This fields must contain the Associated Data of a given Yy File.
See the chart in NewResource
above for more details of which
types of associated data are expected.
Trait Implementations
impl Clone for NewResource
[src]
pub fn clone(&self) -> NewResource
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NewResource
[src]
impl<'de> Deserialize<'de> for NewResource
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for NewResource
[src]
impl PartialEq<NewResource> for NewResource
[src]
pub fn eq(&self, other: &NewResource) -> bool
[src]
pub fn ne(&self, other: &NewResource) -> bool
[src]
impl Serialize for NewResource
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for NewResource
[src]
impl StructuralPartialEq for NewResource
[src]
Auto Trait Implementations
impl RefUnwindSafe for NewResource
[src]
impl Send for NewResource
[src]
impl Sync for NewResource
[src]
impl Unpin for NewResource
[src]
impl UnwindSafe for NewResource
[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>,