pub struct OutgoingDataCollectionEvent {
pub component_id: Option<String>,
pub component_request: Map<String, Value>,
pub component_response: Map<String, Value>,
pub component_slug: Option<String>,
pub object: Option<String>,
pub uuid: Option<String>,
}
Expand description
An outgoing data collection event is an event created by a component, which will be sent to the destination specified by the component.
JSON schema
{
"description": "An outgoing data collection event is an event created by a component, which will be sent to the destination specified by the component.",
"type": "object",
"properties": {
"component_id": {
"description": "Unique identifier for the component",
"readOnly": true,
"type": "string"
},
"component_request": {
"description": "Object representing the request of the event",
"readOnly": true,
"type": "object"
},
"component_response": {
"description": "Object representing the response of the event",
"readOnly": true,
"type": "object"
},
"component_slug": {
"description": "Slug of the component",
"readOnly": true,
"type": "string"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value",
"readOnly": true,
"examples": [
"component"
],
"type": "string"
},
"uuid": {
"description": "Unique identifier for the event",
"readOnly": true,
"type": "string"
}
}
}
Fields§
§component_id: Option<String>
Unique identifier for the component
component_request: Map<String, Value>
Object representing the request of the event
component_response: Map<String, Value>
Object representing the response of the event
component_slug: Option<String>
Slug of the component
object: Option<String>
String representing the object’s type. Objects of the same type share the same value
uuid: Option<String>
Unique identifier for the event
Implementations§
Trait Implementations§
Source§impl Clone for OutgoingDataCollectionEvent
impl Clone for OutgoingDataCollectionEvent
Source§fn clone(&self) -> OutgoingDataCollectionEvent
fn clone(&self) -> OutgoingDataCollectionEvent
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 OutgoingDataCollectionEvent
impl Debug for OutgoingDataCollectionEvent
Source§impl<'de> Deserialize<'de> for OutgoingDataCollectionEvent
impl<'de> Deserialize<'de> for OutgoingDataCollectionEvent
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<&OutgoingDataCollectionEvent> for OutgoingDataCollectionEvent
impl From<&OutgoingDataCollectionEvent> for OutgoingDataCollectionEvent
Source§fn from(value: &OutgoingDataCollectionEvent) -> Self
fn from(value: &OutgoingDataCollectionEvent) -> Self
Converts to this type from the input type.
Source§impl From<OutgoingDataCollectionEvent> for OutgoingDataCollectionEvent
impl From<OutgoingDataCollectionEvent> for OutgoingDataCollectionEvent
Source§fn from(value: OutgoingDataCollectionEvent) -> Self
fn from(value: OutgoingDataCollectionEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for OutgoingDataCollectionEvent
impl JsonSchema for OutgoingDataCollectionEvent
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<OutgoingDataCollectionEvent> for OutgoingDataCollectionEvent
impl TryFrom<OutgoingDataCollectionEvent> for OutgoingDataCollectionEvent
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: OutgoingDataCollectionEvent) -> Result<Self, ConversionError>
fn try_from(value: OutgoingDataCollectionEvent) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OutgoingDataCollectionEvent
impl RefUnwindSafe for OutgoingDataCollectionEvent
impl Send for OutgoingDataCollectionEvent
impl Sync for OutgoingDataCollectionEvent
impl Unpin for OutgoingDataCollectionEvent
impl UnwindSafe for OutgoingDataCollectionEvent
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