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: MessageIdId retained from source records for staff review, safety gates, and workflow joins.
subject: MessageSubjectSubject retained from source records for staff review, safety gates, and workflow joins.
direction: DirectionDirection retained from source records for staff review, safety gates, and workflow joins.
channel: ChannelChannel retained from source records for staff review, safety gates, and workflow joins.
status: StatusStatus retained from source records for staff review, safety gates, and workflow joins.
body_ref: BodyRefBody ref retained from source records for staff review, safety gates, and workflow joins.
approval_gate: Option<ReviewGate>Approval gate retained from source records for staff review, safety gates, and workflow joins.
audit_refs: Vec<EventId>Audit refs retained from source records for staff review, safety gates, and workflow joins.