pub struct Prefab {
pub id: StructuredId,
pub mesh: MeshRef,
pub material: Option<MaterialRef>,
pub extra: Extra,
}Expand description
A unique renderable prefab (mesh + optional material), keyed by StructuredId.
Fields§
§id: StructuredId§mesh: MeshRef§material: Option<MaterialRef>§extra: ExtraUnknown fields, preserved across a round trip (see Extra).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Prefab
impl<'de> Deserialize<'de> for Prefab
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 Prefab
impl RefUnwindSafe for Prefab
impl Send for Prefab
impl Sync for Prefab
impl Unpin for Prefab
impl UnsafeUnpin for Prefab
impl UnwindSafe for Prefab
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