pub struct SerializableTransform {
pub translation: Vec3,
pub rotation: Quaternion,
pub scale: Vec3,
}Expand description
Serializable representation of a Transform component.
Fields§
§translation: Vec3Position of the entity in 3D space.
rotation: QuaternionRotation of the entity in 3D space.
scale: Vec3Scale of the entity in 3D space.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SerializableTransform
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SerializableTransform
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for SerializableTransform
impl Clone for SerializableTransform
Source§fn clone(&self) -> SerializableTransform
fn clone(&self) -> SerializableTransform
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SerializableTransform
impl Debug for SerializableTransform
Source§impl<__Context> Decode<__Context> for SerializableTransform
impl<__Context> Decode<__Context> for SerializableTransform
Source§impl<'de> Deserialize<'de> for SerializableTransform
impl<'de> Deserialize<'de> for SerializableTransform
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
Source§impl Encode for SerializableTransform
impl Encode for SerializableTransform
Source§impl PartialEq for SerializableTransform
impl PartialEq for SerializableTransform
Source§impl Serialize for SerializableTransform
impl Serialize for SerializableTransform
impl Copy for SerializableTransform
impl StructuralPartialEq for SerializableTransform
Auto Trait Implementations§
impl Freeze for SerializableTransform
impl RefUnwindSafe for SerializableTransform
impl Send for SerializableTransform
impl Sync for SerializableTransform
impl Unpin for SerializableTransform
impl UnwindSafe for SerializableTransform
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