pub struct AvatarDescriptor {
pub spec: Option<AvatarSpec>,
pub colors: HashMap<String, String>,
pub assets: Option<String>,
pub base: Option<u32>,
pub worn: Vec<u32>,
}Expand description
avatar-v0.1 envelope — the portable “you” (spec §3 + avatar-v0.1).
The heart is spec: the shared AvatarSpec (slot → partId +
bodyHeight) — the exact same model com.pixygon.avatar (Unity) and
@pixygon/avatar (web) persist, so one saved avatar renders identically in
a Unity game, the web Studio, and any Thread browser. Parts resolve through
the Portable Item Convention (infinite_avatar::manifest): partId →
AvatarAsset doc → one GLB carrying its own meaning.
Fields§
§spec: Option<AvatarSpec>The shared avatar model. Absent → render the placeholder traveler.
colors: HashMap<String, String>§assets: Option<String>Catalog/CDN base for partId → GLB resolution.
base: Option<u32>Legacy draft envelope (pre avatar-v0.1) — still parsed so early issuers
keep rendering. spec wins when both are present.
worn: Vec<u32>Trait Implementations§
Source§impl Clone for AvatarDescriptor
impl Clone for AvatarDescriptor
Source§impl Debug for AvatarDescriptor
impl Debug for AvatarDescriptor
Source§impl Default for AvatarDescriptor
impl Default for AvatarDescriptor
Source§impl<'de> Deserialize<'de> for AvatarDescriptor
impl<'de> Deserialize<'de> for AvatarDescriptor
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
Auto Trait Implementations§
impl Freeze for AvatarDescriptor
impl RefUnwindSafe for AvatarDescriptor
impl Send for AvatarDescriptor
impl Sync for AvatarDescriptor
impl Unpin for AvatarDescriptor
impl UnsafeUnpin for AvatarDescriptor
impl UnwindSafe for AvatarDescriptor
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