pub struct MotionRouteOverride {
pub route: String,
pub enabled: Option<bool>,
pub duration_ms: Option<u32>,
pub reduced_motion: Option<MotionReducedMotionPolicy>,
pub profile: Option<MotionPresetProfile>,
pub labels: BTreeMap<String, String>,
pub tags: Vec<String>,
}Fields§
§route: String§enabled: Option<bool>§duration_ms: Option<u32>§reduced_motion: Option<MotionReducedMotionPolicy>§profile: Option<MotionPresetProfile>§labels: BTreeMap<String, String>Implementations§
Source§impl MotionRouteOverride
impl MotionRouteOverride
pub fn new(route: impl Into<String>) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn duration_ms(self, duration_ms: u32) -> Self
pub fn reduced_motion(self, reduced_motion: MotionReducedMotionPolicy) -> Self
pub fn profile(self, profile: MotionPresetProfile) -> Self
pub fn label(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn tag(self, tag: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for MotionRouteOverride
impl Clone for MotionRouteOverride
Source§fn clone(&self) -> MotionRouteOverride
fn clone(&self) -> MotionRouteOverride
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 MotionRouteOverride
impl Debug for MotionRouteOverride
Source§impl<'de> Deserialize<'de> for MotionRouteOverride
impl<'de> Deserialize<'de> for MotionRouteOverride
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
impl Eq for MotionRouteOverride
Source§impl PartialEq for MotionRouteOverride
impl PartialEq for MotionRouteOverride
Source§fn eq(&self, other: &MotionRouteOverride) -> bool
fn eq(&self, other: &MotionRouteOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MotionRouteOverride
impl Serialize for MotionRouteOverride
impl StructuralPartialEq for MotionRouteOverride
Auto Trait Implementations§
impl Freeze for MotionRouteOverride
impl RefUnwindSafe for MotionRouteOverride
impl Send for MotionRouteOverride
impl Sync for MotionRouteOverride
impl Unpin for MotionRouteOverride
impl UnsafeUnpin for MotionRouteOverride
impl UnwindSafe for MotionRouteOverride
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