Struct vtubestudio::data::ModelMovedEvent
source · [−]pub struct ModelMovedEvent {
pub model_id: String,
pub model_name: String,
pub model_position: ModelPosition,
}
Expand description
An event that is triggered every time a model is moved, resized or rotated.
This will also be triggered right after subscribing, so it will send you the current position/scale/rotation of the currently loaded model the moment you subscribe (unless no model is loaded) and then send the current position/scale/rotation in every frame when there’s a change.
This event can be configured using ModelMovedEventConfig
.
Fields
model_id: String
Model ID.
model_name: String
Model name.
model_position: ModelPosition
Model position.
Trait Implementations
sourceimpl Clone for ModelMovedEvent
impl Clone for ModelMovedEvent
sourcefn clone(&self) -> ModelMovedEvent
fn clone(&self) -> ModelMovedEvent
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 ModelMovedEvent
impl Debug for ModelMovedEvent
sourceimpl Default for ModelMovedEvent
impl Default for ModelMovedEvent
sourcefn default() -> ModelMovedEvent
fn default() -> ModelMovedEvent
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ModelMovedEvent
impl<'de> Deserialize<'de> for ModelMovedEvent
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<ModelMovedEvent> for ModelMovedEvent
impl PartialEq<ModelMovedEvent> for ModelMovedEvent
sourcefn eq(&self, other: &ModelMovedEvent) -> bool
fn eq(&self, other: &ModelMovedEvent) -> bool
sourceimpl Response for ModelMovedEvent
impl Response for ModelMovedEvent
sourceimpl Serialize for ModelMovedEvent
impl Serialize for ModelMovedEvent
impl StructuralPartialEq for ModelMovedEvent
Auto Trait Implementations
impl RefUnwindSafe for ModelMovedEvent
impl Send for ModelMovedEvent
impl Sync for ModelMovedEvent
impl Unpin for ModelMovedEvent
impl UnwindSafe for ModelMovedEvent
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