pub struct EventPost {
pub application_id: Uuid,
pub event_id: Option<Uuid>,
pub event_type: String,
pub labels: HashMap<String, String>,
pub metadata: Option<HashMap<String, String>>,
pub occurred_at: DateTime<Utc>,
pub payload: String,
pub payload_content_type: String,
}Expand description
The EventPost the API declares.
Fields§
§application_id: Uuidapplication_id: UUID of the application this event belongs to.
event_id: Option<Uuid>event_id: Optional unique identifier for this event (client-generated UUID). If not provided, a UUIDv7 will be generated by the server.
event_type: Stringevent_type: The type of event (e.g., ‘user.created’, ‘order.completed’). Length: 1-200 characters.
labels: HashMap<String, String>labels: Labels for event filtering and routing to subscriptions.
metadata: Option<HashMap<String, String>>metadata: Optional metadata key-value pairs associated with the event.
occurred_at: DateTime<Utc>occurred_at: Timestamp when the event occurred.
payload: Stringpayload: The event payload. For binary content, use base64 encoding. Max length: 699050 characters (512 KiB base64-encoded).
payload_content_type: Stringpayload_content_type: Content type of the payload. Valid values: text/plain, application/json, application/octet-stream+base64. Length: 1-100 characters.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventPost
impl<'de> Deserialize<'de> for EventPost
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>,
Auto Trait Implementations§
impl Freeze for EventPost
impl RefUnwindSafe for EventPost
impl Send for EventPost
impl Sync for EventPost
impl Unpin for EventPost
impl UnsafeUnpin for EventPost
impl UnwindSafe for EventPost
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more