[−][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. In a ResourceCommand
,
for example, it is determined by the Resource
which is passed in; for the VirtualFileSystemCommand
, it is
determined by the FileOrFolder
tag. See each documentation for more details.
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.
Implementations
impl SerializedData
[src]
pub fn read_data_as_file<T>(
self,
working_directory: Option<&Path>
) -> Result<T, SerializedDataError> where
T: Deserialize<'de> + Default,
[src]
self,
working_directory: Option<&Path>
) -> Result<T, SerializedDataError> where
T: Deserialize<'de> + Default,
Trait Implementations
impl Clone for SerializedData
[src]
fn clone(&self) -> SerializedData
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SerializedData
[src]
impl<'de> Deserialize<'de> for SerializedData
[src]
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]
fn eq(&self, other: &SerializedData) -> bool
[src]
fn ne(&self, other: &SerializedData) -> bool
[src]
impl Serialize for SerializedData
[src]
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
impl Send for SerializedData
impl Sync for SerializedData
impl Unpin for SerializedData
impl UnwindSafe for SerializedData
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,
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> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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.
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>,