pub struct IncomingDataCollectionEvent {
pub context: Map<String, Value>,
pub data: Map<String, Value>,
pub from: Option<IncomingDataCollectionEventFrom>,
pub object: Option<String>,
pub timestamp: Option<DateTime<Utc>>,
pub type_: Option<IncomingDataCollectionEventType>,
pub uuid: Option<String>,
}
Expand description
An incoming data collection event is an event created by edgee, which will be processed and transformed into one or more outgoing data collection events by the components.
JSON schema
{
"description": "An incoming data collection event is an event created by edgee, which will be processed and transformed into one or more outgoing data collection events by the components.",
"type": "object",
"properties": {
"context": {
"description": "Context of the event",
"readOnly": true,
"type": "object"
},
"data": {
"description": "Data of the event",
"readOnly": true,
"type": "object"
},
"from": {
"description": "Origin of the event",
"readOnly": true,
"type": "string",
"enum": [
"edge",
"client",
"third"
]
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value",
"readOnly": true,
"examples": [
"component"
],
"type": "string"
},
"timestamp": {
"description": "Time at which the event was created",
"readOnly": true,
"type": "string",
"format": "date-time"
},
"type": {
"description": "Type of the event",
"readOnly": true,
"type": "string",
"enum": [
"page",
"track",
"user"
]
},
"uuid": {
"description": "Unique identifier for the event",
"readOnly": true,
"type": "string"
}
}
}
Fields§
§context: Map<String, Value>
Context of the event
data: Map<String, Value>
Data of the event
from: Option<IncomingDataCollectionEventFrom>
Origin of the event
object: Option<String>
String representing the object’s type. Objects of the same type share the same value
timestamp: Option<DateTime<Utc>>
Time at which the event was created
type_: Option<IncomingDataCollectionEventType>
Type of the event
uuid: Option<String>
Unique identifier for the event
Implementations§
Trait Implementations§
Source§impl Clone for IncomingDataCollectionEvent
impl Clone for IncomingDataCollectionEvent
Source§fn clone(&self) -> IncomingDataCollectionEvent
fn clone(&self) -> IncomingDataCollectionEvent
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 IncomingDataCollectionEvent
impl Debug for IncomingDataCollectionEvent
Source§impl<'de> Deserialize<'de> for IncomingDataCollectionEvent
impl<'de> Deserialize<'de> for IncomingDataCollectionEvent
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<&IncomingDataCollectionEvent> for IncomingDataCollectionEvent
impl From<&IncomingDataCollectionEvent> for IncomingDataCollectionEvent
Source§fn from(value: &IncomingDataCollectionEvent) -> Self
fn from(value: &IncomingDataCollectionEvent) -> Self
Converts to this type from the input type.
Source§impl From<IncomingDataCollectionEvent> for IncomingDataCollectionEvent
impl From<IncomingDataCollectionEvent> for IncomingDataCollectionEvent
Source§fn from(value: IncomingDataCollectionEvent) -> Self
fn from(value: IncomingDataCollectionEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for IncomingDataCollectionEvent
impl JsonSchema for IncomingDataCollectionEvent
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl TryFrom<IncomingDataCollectionEvent> for IncomingDataCollectionEvent
impl TryFrom<IncomingDataCollectionEvent> for IncomingDataCollectionEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: IncomingDataCollectionEvent) -> Result<Self, ConversionError>
fn try_from(value: IncomingDataCollectionEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for IncomingDataCollectionEvent
impl RefUnwindSafe for IncomingDataCollectionEvent
impl Send for IncomingDataCollectionEvent
impl Sync for IncomingDataCollectionEvent
impl Unpin for IncomingDataCollectionEvent
impl UnwindSafe for IncomingDataCollectionEvent
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