pub struct EventInfo {
pub data: Option<HashMap<String, Value>>,
pub device_description: Option<String>,
pub device_name: Option<String>,
pub device_type: Option<String>,
pub ip_address: Option<String>,
pub location: Option<Box<Location>>,
pub os: Option<String>,
pub user_agent: Option<String>,
}
Expand description
EventInfo : Information about a user event (login, register, etc) that helps identify the source of the event (location, device type, OS, etc).
Fields§
§data: Option<HashMap<String, Value>>
§device_description: Option<String>
§device_name: Option<String>
§device_type: Option<String>
§ip_address: Option<String>
§location: Option<Box<Location>>
§os: Option<String>
§user_agent: Option<String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventInfo
impl<'de> Deserialize<'de> for EventInfo
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 StructuralPartialEq for EventInfo
Auto Trait Implementations§
impl Freeze for EventInfo
impl RefUnwindSafe for EventInfo
impl Send for EventInfo
impl Sync for EventInfo
impl Unpin for EventInfo
impl UnwindSafe for EventInfo
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