#[non_exhaustive]pub struct Gesture {
pub surface_id: String,
pub source_component_id: String,
pub data_path: String,
pub index: Option<usize>,
pub activation: bool,
pub timestamp: Option<String>,
pub metadata: Option<Value>,
}Expand description
Where a gesture came from.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.surface_id: StringThe surface.
source_component_id: StringThe component the user interacted with.
data_path: StringThe component instance’s data context (its Node::data_path).
index: Option<usize>Its template index (its Node::index).
activation: boolWhether this is a real user activation (a click, a key press), which
openUrl and other gesture-only functions require.
timestamp: Option<String>When it happened, RFC 3339; None uses the current time.
metadata: Option<Value>Renderer metadata sent with the action ({"extensions": {...}}).
Implementations§
Trait Implementations§
impl Eq for Gesture
impl StructuralPartialEq for Gesture
Auto Trait Implementations§
impl Forget for Gesture
impl Freeze for Gesture
impl Move for Gesture
impl RefUnwindSafe for Gesture
impl Send for Gesture
impl Sync for Gesture
impl Unpin for Gesture
impl UnsafeUnpin for Gesture
impl UnwindSafe for Gesture
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.