pub struct InboxReference {
pub delivery_id: String,
pub message_id: String,
pub conversation_id: String,
pub seq: i64,
pub from: String,
pub from_address: String,
pub created_at: String,
pub redelivered: bool,
pub source: String,
pub kind: String,
}Expand description
One reference to a message, as a recipient’s inbox hands it over. It carries no body: the body is read separately, with a current access check at that moment.
Fields§
§delivery_id: StringPass this to confirm_inbox_delivery once you hold the reference
durably. Until you do, nothing has been marked delivered.
message_id: String§conversation_id: String§seq: i64§from: String§from_address: Stringagent/session of the sender, for an exact reply.
created_at: String§redelivered: boolTrue when this reference has been offered before: an earlier confirmation was lost, or the process holding it went away. Handling it twice must change nothing.
source: Stringbroker when it came from the durable inbox, bus when it was
rebuilt from the bus’s own records after an expiry, a deleted
consumer, or a team that is not routed to a broker at all.
kind: Stringmessage — this message was addressed to you — or receipt: a
message you sent has a receipt worth reading again. A receipt
reference never means someone read anything; get_message_receipts
says what actually happened.
Trait Implementations§
Source§impl Clone for InboxReference
impl Clone for InboxReference
Source§impl Debug for InboxReference
impl Debug for InboxReference
Source§impl JsonSchema for InboxReference
impl JsonSchema for InboxReference
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for InboxReference
impl RefUnwindSafe for InboxReference
impl Send for InboxReference
impl Sync for InboxReference
impl Unpin for InboxReference
impl UnsafeUnpin for InboxReference
impl UnwindSafe for InboxReference
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more