pub struct Message {
pub body: String,
pub channel: Option<String>,
pub created_at: String,
pub dispatches: Option<Vec<MessageDispatch>>,
pub id: String,
pub recipient: String,
pub send_count: i64,
pub status: CourierMessageStatus,
pub subject: String,
pub template_type: TemplateTypeEnum,
pub type: CourierMessageType,
pub updated_at: String,
}Fields§
§body: String§channel: Option<String>§created_at: StringCreatedAt is a helper struct field for gobuffalo.pop.
dispatches: Option<Vec<MessageDispatch>>Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the success state.
id: String§recipient: String§send_count: i64§status: CourierMessageStatus§subject: String§template_type: TemplateTypeEnumrecovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid
type: CourierMessageType§updated_at: StringUpdatedAt is a helper struct field for gobuffalo.pop.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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