pub struct InboxEntry {
pub delivery_id: String,
pub message: Option<Message>,
pub status: i32,
pub read: bool,
pub received_at: Option<Timestamp>,
pub kind: i32,
pub parent_delivery_id: String,
pub rendered_locale: String,
pub metadata: Option<DeliveryMetadata>,
}Expand description
A single entry in a user’s inbox, combining a message with its delivery state.
Fields§
§delivery_id: StringID of the delivery record for this inbox entry. Constraints: UUID format (36 characters).
message: Option<Message>The fully rendered message content.
status: i32Current delivery status (e.g. DELIVERED, ACKNOWLEDGED).
read: boolWhether the user has read this message.
received_at: Option<Timestamp>Timestamp when the message was received in the inbox.
kind: i32Discriminator: PRIMARY for normal deliveries, ESCALATION for delivery-grade escalations. Mirrors Delivery.kind so inbox-sync clients can branch on the same dimension as listDeliveries clients.
parent_delivery_id: StringFor ESCALATION entries, the UUID of the unacked delivery that triggered this entry. Empty for PRIMARY entries.
rendered_locale: StringThe locale the body actually rendered in after fallback resolution. Empty for legacy/PRIMARY entries.
metadata: Option<DeliveryMetadata>Optional out-of-band context mirrored from the underlying delivery.
See DeliveryMetadata for which delivery kinds populate which fields.
Empty for PRIMARY entries.
Implementations§
Source§impl InboxEntry
impl InboxEntry
Sourcepub fn status(&self) -> DeliveryStatus
pub fn status(&self) -> DeliveryStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: DeliveryStatus)
pub fn set_status(&mut self, value: DeliveryStatus)
Sets status to the provided enum value.
Trait Implementations§
Source§impl Clone for InboxEntry
impl Clone for InboxEntry
Source§fn clone(&self) -> InboxEntry
fn clone(&self) -> InboxEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InboxEntry
impl Debug for InboxEntry
Source§impl Default for InboxEntry
impl Default for InboxEntry
Source§impl Message for InboxEntry
impl Message for InboxEntry
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for InboxEntry
impl PartialEq for InboxEntry
impl StructuralPartialEq for InboxEntry
Auto Trait Implementations§
impl Freeze for InboxEntry
impl RefUnwindSafe for InboxEntry
impl Send for InboxEntry
impl Sync for InboxEntry
impl Unpin for InboxEntry
impl UnsafeUnpin for InboxEntry
impl UnwindSafe for InboxEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request