Struct vtubestudio::data::ItemToMove
source · [−]pub struct ItemToMove {
pub item_instance_id: String,
pub time_in_seconds: f64,
pub fade_mode: EnumString<FadeMode>,
pub position_x: Option<i32>,
pub position_y: Option<i32>,
pub size: Option<f64>,
pub rotation: Option<i32>,
pub order: Option<i32>,
pub set_flip: bool,
pub flip: bool,
pub user_can_stop: bool,
}
Expand description
Used in ItemMoveRequest
.
Fields
item_instance_id: String
Item instance ID.
time_in_seconds: f64
How long it takes to move the item, clamped between 0
and 30
seconds.
fade_mode: EnumString<FadeMode>
Fade mode, used if time_in_seconds
is non-zero.
position_x: Option<i32>
X position.
A value of None
will be serialized as -1000
as recommended by the documentation.
position_y: Option<i32>
Y position.
A value of None
will be serialized as -1000
as recommended by the documentation.
size: Option<f64>
Size.
A value of None
will be serialized as -1000
as recommended by the documentation.
rotation: Option<i32>
Rotation, in degrees.
A value of None
will be serialized as -1000
as recommended by the documentation.
order: Option<i32>
Change the order of the item.
A value of None
will be serialized as -1000
as recommended by the documentation.
set_flip: bool
Whether to set flip.
flip: bool
Flip.
user_can_stop: bool
Whether the user can stop the item movement by clicking/dragging it.
Trait Implementations
sourceimpl Clone for ItemToMove
impl Clone for ItemToMove
sourcefn clone(&self) -> ItemToMove
fn clone(&self) -> ItemToMove
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 ItemToMove
impl Debug for ItemToMove
sourceimpl Default for ItemToMove
impl Default for ItemToMove
sourcefn default() -> ItemToMove
fn default() -> ItemToMove
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ItemToMove
impl<'de> Deserialize<'de> for ItemToMove
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<ItemToMove> for ItemToMove
impl PartialEq<ItemToMove> for ItemToMove
sourcefn eq(&self, other: &ItemToMove) -> bool
fn eq(&self, other: &ItemToMove) -> bool
sourceimpl Serialize for ItemToMove
impl Serialize for ItemToMove
impl StructuralPartialEq for ItemToMove
Auto Trait Implementations
impl RefUnwindSafe for ItemToMove
impl Send for ItemToMove
impl Sync for ItemToMove
impl Unpin for ItemToMove
impl UnwindSafe for ItemToMove
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