pub struct Asset<'a> {
pub copyright: Option<Cow<'a, str>>,
pub generator: Option<Cow<'a, str>>,
pub version: Cow<'a, str>,
pub min_version: Option<Cow<'a, str>>,
pub extensions: Option<Extensions<'a>>,
pub extras: Option<Extras<'a>>,
}Expand description
Metadata about a glTF asset.
Fields§
§copyright: Option<Cow<'a, str>>A copyright message suitable for display to credit the content creator.
generator: Option<Cow<'a, str>>Tool that generated this glTF model. Useful for debugging.
version: Cow<'a, str>The glTF version in the form of <major>.<minor> that this asset targets.
min_version: Option<Cow<'a, str>>The minimum glTF version in the form of <major>.<minor> that this asset targets.
extensions: Option<Extensions<'a>>§extras: Option<Extras<'a>>Implementations§
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for Asset<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Asset<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for Asset<'a>
impl<'a> RefUnwindSafe for Asset<'a>
impl<'a> Send for Asset<'a>
impl<'a> Sync for Asset<'a>
impl<'a> Unpin for Asset<'a>
impl<'a> UnsafeUnpin for Asset<'a>
impl<'a> UnwindSafe for Asset<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more