Struct gltf_json::root::Root [] [src]

pub struct Root {
    pub accessors: Vec<Accessor>,
    pub animations: Vec<Animation>,
    pub asset: Asset,
    pub buffers: Vec<Buffer>,
    pub buffer_views: Vec<View>,
    pub scene: Option<Index<Scene>>,
    pub extensions: Root,
    pub extras: Extras,
    pub extensions_used: Vec<String>,
    pub extensions_required: Vec<String>,
    pub cameras: Vec<Camera>,
    pub images: Vec<Image>,
    pub materials: Vec<Material>,
    pub meshes: Vec<Mesh>,
    pub nodes: Vec<Node>,
    pub samplers: Vec<Sampler>,
    pub scenes: Vec<Scene>,
    pub skins: Vec<Skin>,
    pub textures: Vec<Texture>,
}

The root object of a glTF 2.0 asset.

Fields

An array of accessors.

An array of keyframe animations.

Metadata about the glTF asset.

An array of buffers.

An array of buffer views.

The default scene.

Extension specific data.

Optional application specific data.

Names of glTF extensions used somewhere in this asset.

Names of glTF extensions required to properly load this asset.

An array of cameras.

An array of images.

An array of materials.

An array of meshes.

An array of nodes.

An array of samplers.

An array of scenes.

An array of skins.

An array of textures.

Methods

impl Root
[src]

[src]

Returns a single item from the root object.

Trait Implementations

impl Clone for Root
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Root
[src]

[src]

Formats the value using the given formatter.

impl Default for Root
[src]

[src]

Returns the "default value" for a type. Read more

impl Validate for Root
[src]

[src]

Validates only the invariants required for the library to function safely.

[src]

Validates the data against the glTF 2.0 specification. Read more

impl<'a> Get<Accessor> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Animation> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Buffer> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<View> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Camera> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Image> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Material> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Mesh> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Node> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Sampler> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Scene> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Skin> for Root
[src]

[src]

Retrieves a single value at the given index.

impl<'a> Get<Texture> for Root
[src]

[src]

Retrieves a single value at the given index.