1use alloc::borrow::Cow;
2use alloc::vec::Vec;
3use ownable::IntoOwned;
4use serde::Deserialize;
5
6use crate::accessor::Accessor;
7use crate::node::Node;
8use crate::{Extensions, Extras, Idx};
9
10#[derive(Debug, Clone, Deserialize, IntoOwned)]
12pub struct Skin<'a> {
13 #[serde(borrow)]
15 pub name: Option<Cow<'a, str>>,
16
17 pub skeleton: Option<Idx<Node<'static>>>,
19 pub joints: Vec<Idx<Node<'static>>>,
21 #[serde(rename = "inverseBindMatrices")]
23 pub inverse_bind_matrices: Option<Idx<Accessor<'static>>>,
24
25 #[serde(borrow)]
26 pub extensions: Option<Extensions<'a>>,
27 #[serde(borrow)]
28 pub extras: Option<Extras<'a>>,
29}