pub struct MessageDispatch {
pub created_at: String,
pub error: Option<Value>,
pub id: String,
pub message_id: String,
pub status: StatusEnum,
pub updated_at: String,
}Expand description
MessageDispatch : MessageDispatch represents an attempt of sending a courier message It contains the status of the attempt (failed or successful) and the error if any occured
Fields§
§created_at: StringCreatedAt is a helper struct field for gobuffalo.pop.
error: Option<Value>§id: StringThe ID of this message dispatch
message_id: StringThe ID of the message being dispatched
status: StatusEnumThe status of this dispatch Either "failed" or "success" failed CourierMessageDispatchStatusFailed success CourierMessageDispatchStatusSuccess
updated_at: StringUpdatedAt is a helper struct field for gobuffalo.pop.
Implementations§
Source§impl MessageDispatch
impl MessageDispatch
Sourcepub fn new(
created_at: String,
id: String,
message_id: String,
status: StatusEnum,
updated_at: String,
) -> MessageDispatch
pub fn new( created_at: String, id: String, message_id: String, status: StatusEnum, updated_at: String, ) -> MessageDispatch
MessageDispatch represents an attempt of sending a courier message It contains the status of the attempt (failed or successful) and the error if any occured
Trait Implementations§
Source§impl Clone for MessageDispatch
impl Clone for MessageDispatch
Source§fn clone(&self) -> MessageDispatch
fn clone(&self) -> MessageDispatch
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 MessageDispatch
impl Debug for MessageDispatch
Source§impl Default for MessageDispatch
impl Default for MessageDispatch
Source§fn default() -> MessageDispatch
fn default() -> MessageDispatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageDispatch
impl<'de> Deserialize<'de> for MessageDispatch
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 MessageDispatch
impl PartialEq for MessageDispatch
Source§impl Serialize for MessageDispatch
impl Serialize for MessageDispatch
impl StructuralPartialEq for MessageDispatch
Auto Trait Implementations§
impl Freeze for MessageDispatch
impl RefUnwindSafe for MessageDispatch
impl Send for MessageDispatch
impl Sync for MessageDispatch
impl Unpin for MessageDispatch
impl UnwindSafe for MessageDispatch
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