pub struct EventAttributes {
pub admin: Option<bool>,
pub created_at: Option<String>,
pub customer_id: Option<Box<String>>,
pub description: Option<String>,
pub event_type: Option<EventType>,
pub ip: Option<String>,
pub metadata: Option<HashMap<String, Value>>,
pub service_id: Option<Box<String>>,
pub user_id: Option<Box<String>>,
pub token_id: Option<Box<String>>,
}
Fields§
§admin: Option<bool>
Indicates if event was performed by Fastly.
created_at: Option<String>
Date and time in ISO 8601 format.
customer_id: Option<Box<String>>
§description: Option<String>
Description of the event.
event_type: Option<EventType>
Type of event. Can be used with filter[event_type]
ip: Option<String>
IP addresses that the event was requested from.
metadata: Option<HashMap<String, Value>>
Hash of key value pairs of additional information.
service_id: Option<Box<String>>
§user_id: Option<Box<String>>
§token_id: Option<Box<String>>
Implementations§
Source§impl EventAttributes
impl EventAttributes
pub fn new() -> EventAttributes
Trait Implementations§
Source§impl Clone for EventAttributes
impl Clone for EventAttributes
Source§fn clone(&self) -> EventAttributes
fn clone(&self) -> EventAttributes
Returns a duplicate of the value. Read more
1.0.0 · 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 EventAttributes
impl Debug for EventAttributes
Source§impl Default for EventAttributes
impl Default for EventAttributes
Source§fn default() -> EventAttributes
fn default() -> EventAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventAttributes
impl<'de> Deserialize<'de> for EventAttributes
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 EventAttributes
impl PartialEq for EventAttributes
Source§impl Serialize for EventAttributes
impl Serialize for EventAttributes
impl StructuralPartialEq for EventAttributes
Auto Trait Implementations§
impl Freeze for EventAttributes
impl RefUnwindSafe for EventAttributes
impl Send for EventAttributes
impl Sync for EventAttributes
impl Unpin for EventAttributes
impl UnwindSafe for EventAttributes
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