pub enum SkinLayer {
Cape,
Jacket,
LeftSleeve,
RightSleeve,
LeftPantsLeg,
RightPantsLeg,
Hat,
}Expand description
One of the player model’s second-layer parts, as the pinned client’s
PlayerModelPart names it (spec-0097 §2.4). left and right are the
model’s own, not the observer’s. crates/delvec/tests/skin_parts.rs holds
these tokens equal to the layers crates/delvec/data/model-parts-1.21.11.json
read from the jar.
Variants§
Cape
The cape, where the profile carries one.
Jacket
The torso’s overlay shell.
LeftSleeve
The left arm’s overlay shell.
RightSleeve
The right arm’s overlay shell.
LeftPantsLeg
The left leg’s overlay shell.
RightPantsLeg
The right leg’s overlay shell.
Hat
The head’s overlay shell.
Implementations§
Trait Implementations§
impl Copy for SkinLayer
Source§impl<'de> Deserialize<'de> for SkinLayer
impl<'de> Deserialize<'de> for SkinLayer
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 Eq for SkinLayer
Source§impl JsonSchema for SkinLayer
impl JsonSchema for SkinLayer
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for SkinLayer
impl Ord for SkinLayer
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for SkinLayer
impl PartialOrd for SkinLayer
impl StructuralPartialEq for SkinLayer
Auto Trait Implementations§
impl Freeze for SkinLayer
impl RefUnwindSafe for SkinLayer
impl Send for SkinLayer
impl Sync for SkinLayer
impl Unpin for SkinLayer
impl UnsafeUnpin for SkinLayer
impl UnwindSafe for SkinLayer
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