pub struct MotionGroup {
pub id: String,
pub trigger: MotionTrigger,
pub duration_ms: u32,
pub delay_ms: u32,
pub stagger_ms: u32,
pub curve: MotionCurve,
pub playback: MotionPlayback,
pub reduced_motion: MotionReducedMotionPolicy,
pub render_lanes: Vec<MotionRenderLane>,
pub metadata: BTreeMap<String, Value>,
}Fields§
§id: String§trigger: MotionTrigger§duration_ms: u32§delay_ms: u32§stagger_ms: u32§curve: MotionCurve§playback: MotionPlayback§reduced_motion: MotionReducedMotionPolicy§render_lanes: Vec<MotionRenderLane>§metadata: BTreeMap<String, Value>Implementations§
Source§impl MotionGroup
impl MotionGroup
pub fn new(id: impl Into<String>) -> Self
pub fn with_trigger(self, trigger: MotionTrigger) -> Self
pub fn trigger(self, trigger: MotionTrigger) -> Self
pub fn with_duration_ms(self, duration_ms: u32) -> Self
pub fn dur_ms(self, duration_ms: u32) -> Self
pub fn with_delay_ms(self, delay_ms: u32) -> Self
pub fn delay_ms(self, delay_ms: u32) -> Self
pub fn with_stagger_ms(self, stagger_ms: u32) -> Self
pub fn stagger_ms(self, stagger_ms: u32) -> Self
pub fn with_curve(self, curve: MotionCurve) -> Self
pub fn curve(self, curve: MotionCurve) -> Self
pub fn with_playback(self, playback: MotionPlayback) -> Self
pub fn playback(self, playback: MotionPlayback) -> Self
pub fn with_reduced_motion(self, policy: MotionReducedMotionPolicy) -> Self
pub fn reduced(self, policy: MotionReducedMotionPolicy) -> Self
pub fn with_render_lane(self, lane: MotionRenderLane) -> Self
pub fn lane(self, lane: MotionRenderLane) -> Self
pub fn with_metadata(self, key: impl Into<String>, value: Value) -> Self
pub fn meta(self, key: impl Into<String>, value: Value) -> Self
Trait Implementations§
Source§impl Clone for MotionGroup
impl Clone for MotionGroup
Source§fn clone(&self) -> MotionGroup
fn clone(&self) -> MotionGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MotionGroup
impl Debug for MotionGroup
Source§impl<'de> Deserialize<'de> for MotionGroup
impl<'de> Deserialize<'de> for MotionGroup
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 PartialEq for MotionGroup
impl PartialEq for MotionGroup
Source§fn eq(&self, other: &MotionGroup) -> bool
fn eq(&self, other: &MotionGroup) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MotionGroup
impl Serialize for MotionGroup
impl StructuralPartialEq for MotionGroup
Auto Trait Implementations§
impl Freeze for MotionGroup
impl RefUnwindSafe for MotionGroup
impl Send for MotionGroup
impl Sync for MotionGroup
impl Unpin for MotionGroup
impl UnsafeUnpin for MotionGroup
impl UnwindSafe for MotionGroup
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