pub struct InputActionEvent {
pub user_id: Option<String>,
pub action: Option<String>,
pub timestamp: Option<i64>,
pub triggers: Option<Vec<TriggerKeys>>,
}
Fields
user_id: Option<String>
action: Option<String>
timestamp: Option<i64>
triggers: Option<Vec<TriggerKeys>>
Implementations
sourceimpl InputActionEvent
impl InputActionEvent
pub fn new<F1, F2, F3, F4>(
user_id: F1,
action: F2,
timestamp: F3,
triggers: F4
) -> InputActionEventwhere
F1: Into<Option<String>>,
F2: Into<Option<String>>,
F3: Into<Option<i64>>,
F4: Into<Option<Vec<TriggerKeys>>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<InputActionEvent>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
sourceimpl Clone for InputActionEvent
impl Clone for InputActionEvent
sourcefn clone(&self) -> InputActionEvent
fn clone(&self) -> InputActionEvent
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 InputActionEvent
impl Debug for InputActionEvent
sourceimpl Default for InputActionEvent
impl Default for InputActionEvent
sourceimpl Hash for InputActionEvent
impl Hash for InputActionEvent
sourceimpl Ord for InputActionEvent
impl Ord for InputActionEvent
sourcefn cmp(&self, other: &InputActionEvent) -> Ordering
fn cmp(&self, other: &InputActionEvent) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<InputActionEvent> for InputActionEvent
impl PartialEq<InputActionEvent> for InputActionEvent
sourcefn eq(&self, other: &InputActionEvent) -> bool
fn eq(&self, other: &InputActionEvent) -> bool
sourceimpl PartialOrd<InputActionEvent> for InputActionEvent
impl PartialOrd<InputActionEvent> for InputActionEvent
sourcefn partial_cmp(&self, other: &InputActionEvent) -> Option<Ordering>
fn partial_cmp(&self, other: &InputActionEvent) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for InputActionEvent
impl StructuralEq for InputActionEvent
impl StructuralPartialEq for InputActionEvent
Auto Trait Implementations
impl RefUnwindSafe for InputActionEvent
impl Send for InputActionEvent
impl Sync for InputActionEvent
impl Unpin for InputActionEvent
impl UnwindSafe for InputActionEvent
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