pub struct SwipeArgs {
pub direction: Option<String>,
pub from: Option<[f64; 2]>,
pub to: Option<[f64; 2]>,
pub duration_ms: Option<u64>,
pub drag: bool,
}Fields§
§direction: Option<String>§from: Option<[f64; 2]>§to: Option<[f64; 2]>§duration_ms: Option<u64>§drag: boolSlow to a stop before lifting (a drag) instead of flicking.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SwipeArgs
impl<'de> Deserialize<'de> for SwipeArgs
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
Auto Trait Implementations§
impl Forget for SwipeArgs
impl Freeze for SwipeArgs
impl Move for SwipeArgs
impl RefUnwindSafe for SwipeArgs
impl Send for SwipeArgs
impl Sync for SwipeArgs
impl Unpin for SwipeArgs
impl UnsafeUnpin for SwipeArgs
impl UnwindSafe for SwipeArgs
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