pub struct RigPart {
pub id: String,
pub kind: PartKind,
pub block: String,
pub rest: Option<Transform>,
}Expand description
One part: one display entity.
Fields§
§id: StringThe part’s name, unique within the rig. Read by people and diagnostics.
kind: PartKindWhat kind of display the part is.
block: StringThe block state a block part shows (minecraft:sculk,
minecraft:oak_log[axis=x]), checked against the pinned block registry.
rest: Option<Transform>The part’s rest pose, the transform it takes when no clip plays. Absent: the first frame of the rig’s first clip.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RigPart
impl<'de> Deserialize<'de> for RigPart
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for RigPart
Auto Trait Implementations§
impl Freeze for RigPart
impl RefUnwindSafe for RigPart
impl Send for RigPart
impl Sync for RigPart
impl Unpin for RigPart
impl UnsafeUnpin for RigPart
impl UnwindSafe for RigPart
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