use alloc::borrow::Cow;
use alloc::vec::Vec;
use ownable::IntoOwned;
use serde::Deserialize;
use crate::accessor::Accessor;
use crate::node::Node;
use crate::{Extensions, Extras, Idx};
#[derive(Debug, Clone, Deserialize, IntoOwned)]
pub struct Skin<'a> {
#[serde(borrow)]
pub name: Option<Cow<'a, str>>,
pub skeleton: Option<Idx<Node<'static>>>,
pub joints: Vec<Idx<Node<'static>>>,
#[serde(rename = "inverseBindMatrices")]
pub inverse_bind_matrices: Option<Idx<Accessor<'static>>>,
#[serde(borrow)]
pub extensions: Option<Extensions<'a>>,
#[serde(borrow)]
pub extras: Option<Extras<'a>>,
}