pub type TopicEventRequest = TopicEventRequest;
Expand description

TopicEventRequest message is compatiable with CloudEvent spec v1.0.

Aliased Type§

struct TopicEventRequest {
    pub id: String,
    pub source: String,
    pub type: String,
    pub spec_version: String,
    pub data_content_type: String,
    pub data: Vec<u8>,
    pub topic: String,
    pub pubsub_name: String,
    pub path: String,
    pub extensions: Option<Struct>,
}

Fields§

§id: String

id identifies the event. Producers MUST ensure that source + id is unique for each distinct event. If a duplicate event is re-sent (e.g. due to a network error) it MAY have the same id.

§source: String

source identifies the context in which an event happened. Often this will include information such as the type of the event source, the organization publishing the event or the process that produced the event. The exact syntax and semantics behind the data encoded in the URI is defined by the event producer.

§type: String

The type of event related to the originating occurrence.

§spec_version: String

The version of the CloudEvents specification.

§data_content_type: String

The content type of data value.

§data: Vec<u8>

The content of the event.

§topic: String

The pubsub topic which publisher sent to.

§pubsub_name: String

The name of the pubsub the publisher sent to.

§path: String

The matching path from TopicSubscription/routes (if specified) for this event. This value is used by OnTopicEvent to “switch” inside the handler.

§extensions: Option<Struct>

The map of additional custom properties to be sent to the app. These are considered to be cloud event extensions.