Struct gltf_json::buffer::Buffer [−][src]
pub struct Buffer {
pub byte_length: u32,
pub name: Option<String>,
pub uri: Option<String>,
pub extensions: Option<Buffer>,
pub extras: Extras,
}
Expand description
A buffer points to binary data representing geometry, animations, or skins.
Fields
byte_length: u32
The length of the buffer in bytes.
name: Option<String>
Optional user-defined name for this object.
uri: Option<String>
The uri of the buffer. Relative paths are relative to the .gltf file. Instead of referencing an external file, the uri can also be a data-uri.
extensions: Option<Buffer>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations
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 RefUnwindSafe for Buffer
impl UnwindSafe for Buffer
Blanket Implementations
Mutably borrows from an owned value. Read more