pub enum Storage {
Binary,
Standard,
Embedded,
}
Expand description
Describes the storage format of a glTF 2.0 scene.
Variants§
Binary
Binary glTF 2.0.
This is a single binary with .glb extension.
Standard
Standard glTF 2.0.
This is a JSON file with .gltf extension paired with a separate binary blob file with .bin extension.
Embedded
Embedded glTF 2.0.
Single JSON file with .gltf extension binary data encoded as base64 data URIs.
This is the default setting.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Storage
impl<'de> Deserialize<'de> for Storage
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
source§impl JsonSchema for Storage
impl JsonSchema for Storage
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for Storage
impl PartialEq for Storage
impl Copy for Storage
impl Eq for Storage
impl StructuralPartialEq for Storage
Auto Trait Implementations§
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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