[−][src]Enum yy_boss::SerializedData
The data which is passed in as part of a Command. Each tag represents a different way to pass data into the given Resource.
NB: the type of data which is passed in is determined by the containing Command.
Variants
The data itself, represented in some valid utf8 format. Scripts, yyfiles, and most resources will likely be passed in with this tag.
Errors
It is an error to try to pass in any binary data which cannot be represented in utf8 format.
To pass in images and other similar files, prefer using Filepath
.
Fields of Value
data: String
A path to the data iself, from some relevant directory. Symbolic links will not be followed.
Anything, including gml and yy files, can be passed in with this tag, though its use is primarily for binary files, such as images and sound files.
Fields of Filepath
data: PathBuf
A default for the type of data provided, which the YypBoss will generate for users.
For example, to create a new Script, a user would want the Script's AssociatedData, which is the gml file, to be blank. This will generate such an empty string. In a more complex example, if a user is making a new Object, and is fine with default settings, included an autogenerated name, this tag will do that. Since all data can be edited afterwards, this can provide a convenient way to generate new objects.
Trait Implementations
impl Clone for SerializedData
[src]
pub fn clone(&self) -> SerializedData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SerializedData
[src]
impl<'de> Deserialize<'de> for SerializedData
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for SerializedData
[src]
impl PartialEq<SerializedData> for SerializedData
[src]
pub fn eq(&self, other: &SerializedData) -> bool
[src]
pub fn ne(&self, other: &SerializedData) -> bool
[src]
impl Serialize for SerializedData
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for SerializedData
[src]
impl StructuralPartialEq for SerializedData
[src]
Auto Trait Implementations
impl RefUnwindSafe for SerializedData
[src]
impl Send for SerializedData
[src]
impl Sync for SerializedData
[src]
impl Unpin for SerializedData
[src]
impl UnwindSafe for SerializedData
[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>,