Struct vtubestudio::data::ModelPosition
source · [−]pub struct ModelPosition {
pub position_x: f64,
pub position_y: f64,
pub rotation: f64,
pub size: f64,
}
Expand description
Used in CurrentModelResponse
and ModelMovedEvent
.
Fields
position_x: f64
The X position of the model.
position_y: f64
The Y position of the model.
rotation: f64
The rotation of the model in degrees.
size: f64
The size of the model (between -100 and 100).
Trait Implementations
sourceimpl Clone for ModelPosition
impl Clone for ModelPosition
sourcefn clone(&self) -> ModelPosition
fn clone(&self) -> ModelPosition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ModelPosition
impl Debug for ModelPosition
sourceimpl Default for ModelPosition
impl Default for ModelPosition
sourcefn default() -> ModelPosition
fn default() -> ModelPosition
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ModelPosition
impl<'de> Deserialize<'de> for ModelPosition
sourcefn 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
sourceimpl PartialEq<ModelPosition> for ModelPosition
impl PartialEq<ModelPosition> for ModelPosition
sourcefn eq(&self, other: &ModelPosition) -> bool
fn eq(&self, other: &ModelPosition) -> bool
sourceimpl Serialize for ModelPosition
impl Serialize for ModelPosition
impl StructuralPartialEq for ModelPosition
Auto Trait Implementations
impl RefUnwindSafe for ModelPosition
impl Send for ModelPosition
impl Sync for ModelPosition
impl Unpin for ModelPosition
impl UnwindSafe for ModelPosition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more