pub struct GltfOutput {
pub json: Vec<u8>,
pub resources: Vec<GltfResource>,
}Expand description
A portable JSON glTF document and the companion resources it references.
Write json to the .gltf file and each GltfResource relative to it.
Data URIs remain embedded in json; every materialized buffer with a
non-data URI is returned exactly once in resources.
Fields§
§json: Vec<u8>Serialized JSON document bytes.
resources: Vec<GltfResource>Companion resources to write relative to the JSON document.
Trait Implementations§
Source§impl Clone for GltfOutput
impl Clone for GltfOutput
Source§fn clone(&self) -> GltfOutput
fn clone(&self) -> GltfOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GltfOutput
impl RefUnwindSafe for GltfOutput
impl Send for GltfOutput
impl Sync for GltfOutput
impl Unpin for GltfOutput
impl UnsafeUnpin for GltfOutput
impl UnwindSafe for GltfOutput
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