pub struct EndpointMessageOut {
pub channels: Option<Vec<String>>,
pub event_id: Option<String>,
pub event_type: String,
pub id: String,
pub next_attempt: Option<String>,
pub payload: Value,
pub status: MessageStatus,
pub tags: Option<Vec<String>>,
pub timestamp: String,
}
Expand description
EndpointMessageOut : A model containing information on a given message plus additional fields on the last attempt for that message.
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
id: String
The msg’s ID
next_attempt: Option<String>
§payload: Value
§status: MessageStatus
§timestamp: String
Implementations§
Source§impl EndpointMessageOut
impl EndpointMessageOut
Sourcepub fn new(
event_type: String,
id: String,
payload: Value,
status: MessageStatus,
timestamp: String,
) -> EndpointMessageOut
pub fn new( event_type: String, id: String, payload: Value, status: MessageStatus, timestamp: String, ) -> EndpointMessageOut
A model containing information on a given message plus additional fields on the last attempt for that message.
Trait Implementations§
Source§impl Clone for EndpointMessageOut
impl Clone for EndpointMessageOut
Source§fn clone(&self) -> EndpointMessageOut
fn clone(&self) -> EndpointMessageOut
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 EndpointMessageOut
impl Debug for EndpointMessageOut
Source§impl Default for EndpointMessageOut
impl Default for EndpointMessageOut
Source§fn default() -> EndpointMessageOut
fn default() -> EndpointMessageOut
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndpointMessageOut
impl<'de> Deserialize<'de> for EndpointMessageOut
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 EndpointMessageOut
impl PartialEq for EndpointMessageOut
Source§impl Serialize for EndpointMessageOut
impl Serialize for EndpointMessageOut
impl StructuralPartialEq for EndpointMessageOut
Auto Trait Implementations§
impl Freeze for EndpointMessageOut
impl RefUnwindSafe for EndpointMessageOut
impl Send for EndpointMessageOut
impl Sync for EndpointMessageOut
impl Unpin for EndpointMessageOut
impl UnwindSafe for EndpointMessageOut
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