pub struct MessageBroadcastIn {
pub channels: Option<Vec<String>>,
pub event_id: Option<String>,
pub event_type: String,
pub payload: Value,
pub payload_retention_hours: Option<i64>,
pub payload_retention_period: Option<i64>,
}
Fields§
§channels: Option<Vec<String>>
List of free-form identifiers that endpoints can filter by
event_id: Option<String>
Optional unique identifier for the message
event_type: String
The event type’s name
payload: Value
§payload_retention_hours: Option<i64>
Optional number of hours to retain the message payload. Note that this is mutually exclusive with payloadRetentionPeriod
.
payload_retention_period: Option<i64>
Optional number of days to retain the message payload. Defaults to 90. Note that this is mutually exclusive with payloadRetentionHours
.
Implementations§
Source§impl MessageBroadcastIn
impl MessageBroadcastIn
pub fn new(event_type: String, payload: Value) -> MessageBroadcastIn
Trait Implementations§
Source§impl Clone for MessageBroadcastIn
impl Clone for MessageBroadcastIn
Source§fn clone(&self) -> MessageBroadcastIn
fn clone(&self) -> MessageBroadcastIn
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 MessageBroadcastIn
impl Debug for MessageBroadcastIn
Source§impl Default for MessageBroadcastIn
impl Default for MessageBroadcastIn
Source§fn default() -> MessageBroadcastIn
fn default() -> MessageBroadcastIn
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageBroadcastIn
impl<'de> Deserialize<'de> for MessageBroadcastIn
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 PartialEq for MessageBroadcastIn
impl PartialEq for MessageBroadcastIn
Source§impl Serialize for MessageBroadcastIn
impl Serialize for MessageBroadcastIn
impl StructuralPartialEq for MessageBroadcastIn
Auto Trait Implementations§
impl Freeze for MessageBroadcastIn
impl RefUnwindSafe for MessageBroadcastIn
impl Send for MessageBroadcastIn
impl Sync for MessageBroadcastIn
impl Unpin for MessageBroadcastIn
impl UnwindSafe for MessageBroadcastIn
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