pub struct AnalyticsEventInput {
pub client_id: Option<Uuid>,
pub event_name: AnalyticsEventInputEventName,
pub payload: Map<String, Value>,
}Expand description
The input for capturing an analytics event.
JSON schema
{
"title": "AnalyticsEventInput",
"description": "The input for capturing an analytics event.",
"type": "object",
"required": [
"event_name"
],
"properties": {
"client_id": {
"type": "string",
"format": "uuid"
},
"event_name": {
"type": "string",
"maxLength": 64,
"pattern": "^[a-z0-9_-]+$"
},
"payload": {
"type": "object",
"additionalProperties": {}
}
},
"x-stainless-model": "analytics.analytics_event_input"
}Fields§
§client_id: Option<Uuid>§event_name: AnalyticsEventInputEventName§payload: Map<String, Value>Trait Implementations§
Source§impl Clone for AnalyticsEventInput
impl Clone for AnalyticsEventInput
Source§fn clone(&self) -> AnalyticsEventInput
fn clone(&self) -> AnalyticsEventInput
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 AnalyticsEventInput
impl Debug for AnalyticsEventInput
Source§impl<'de> Deserialize<'de> for AnalyticsEventInput
impl<'de> Deserialize<'de> for AnalyticsEventInput
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 From<&AnalyticsEventInput> for AnalyticsEventInput
impl From<&AnalyticsEventInput> for AnalyticsEventInput
Source§fn from(value: &AnalyticsEventInput) -> Self
fn from(value: &AnalyticsEventInput) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnalyticsEventInput
impl RefUnwindSafe for AnalyticsEventInput
impl Send for AnalyticsEventInput
impl Sync for AnalyticsEventInput
impl Unpin for AnalyticsEventInput
impl UnsafeUnpin for AnalyticsEventInput
impl UnwindSafe for AnalyticsEventInput
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