use crate::{accessor, extensions, scene, Extras, Index};
use gltf_derive::Validate;
use serde_derive::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize, Validate)]
pub struct Skin {
#[serde(default, skip_serializing_if = "Option::is_none")]
pub extensions: Option<extensions::skin::Skin>,
#[serde(default)]
#[cfg_attr(feature = "extras", serde(skip_serializing_if = "Option::is_none"))]
#[cfg_attr(not(feature = "extras"), serde(skip_serializing))]
pub extras: Extras,
#[serde(rename = "inverseBindMatrices")]
#[serde(skip_serializing_if = "Option::is_none")]
pub inverse_bind_matrices: Option<Index<accessor::Accessor>>,
#[serde(skip_serializing_if = "Vec::is_empty")]
pub joints: Vec<Index<scene::Node>>,
#[cfg(feature = "names")]
#[cfg_attr(feature = "names", serde(skip_serializing_if = "Option::is_none"))]
pub name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub skeleton: Option<Index<scene::Node>>,
}