pub struct EventAction {
pub action: String,
pub event_id: i64,
pub json: Option<bool>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Fields§
§action: StringThe Event Action [approve/deny]
event_id: i64The Event ID
json: Option<bool>Set output format to JSON
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl EventAction
impl EventAction
pub fn new(action: String, event_id: i64) -> EventAction
Trait Implementations§
Source§impl Clone for EventAction
impl Clone for EventAction
Source§fn clone(&self) -> EventAction
fn clone(&self) -> EventAction
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 EventAction
impl Debug for EventAction
Source§impl Default for EventAction
impl Default for EventAction
Source§fn default() -> EventAction
fn default() -> EventAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventAction
impl<'de> Deserialize<'de> for EventAction
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 EventAction
impl PartialEq for EventAction
Source§fn eq(&self, other: &EventAction) -> bool
fn eq(&self, other: &EventAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventAction
impl Serialize for EventAction
impl StructuralPartialEq for EventAction
Auto Trait Implementations§
impl Freeze for EventAction
impl RefUnwindSafe for EventAction
impl Send for EventAction
impl Sync for EventAction
impl Unpin for EventAction
impl UnsafeUnpin for EventAction
impl UnwindSafe for EventAction
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