pub struct Message {
pub id: MessageId,
pub subject: MessageSubject,
pub direction: Direction,
pub channel: Channel,
pub status: Status,
pub body_ref: BodyRef,
pub approval_gate: Option<ReviewGate>,
pub audit_refs: Vec<EventId>,
}Expand description
Customer/internal message record that tracks subject, channel, draft/reference body, approval, and delivery state.
Fields§
§id: MessageIdSource-backed id carried by this normalized pet-resort entity.
subject: MessageSubjectSource-backed subject carried by this normalized pet-resort entity.
direction: DirectionSource-backed direction carried by this normalized pet-resort entity.
channel: ChannelSource-backed channel carried by this normalized pet-resort entity.
status: StatusSource-backed status carried by this normalized pet-resort entity.
body_ref: BodyRefSource-backed body ref carried by this normalized pet-resort entity.
approval_gate: Option<ReviewGate>Source-backed approval gate carried by this normalized pet-resort entity.
audit_refs: Vec<EventId>Source-backed audit refs carried by this normalized pet-resort entity.
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 Eq for Message
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 UnsafeUnpin 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