pub enum InsertMessageOutcome {
Inserted,
Deduplicated {
message_id: MessageId,
},
}Expand description
What MailStore::insert_message did. Distinguishes a genuinely new
message from a retry recognised by its idempotency key, so the engine can
return the original mail4agent_api::SendResponse without needing a
second read.
Variants§
Inserted
The message was new and is now stored.
Deduplicated
A prior send from the same participant already used this idempotency key; nothing was created, and this is the id of that prior message.
Trait Implementations§
Source§impl Clone for InsertMessageOutcome
impl Clone for InsertMessageOutcome
Source§impl Debug for InsertMessageOutcome
impl Debug for InsertMessageOutcome
impl Eq for InsertMessageOutcome
Source§impl PartialEq for InsertMessageOutcome
impl PartialEq for InsertMessageOutcome
impl StructuralPartialEq for InsertMessageOutcome
Auto Trait Implementations§
impl Freeze for InsertMessageOutcome
impl RefUnwindSafe for InsertMessageOutcome
impl Send for InsertMessageOutcome
impl Sync for InsertMessageOutcome
impl Unpin for InsertMessageOutcome
impl UnsafeUnpin for InsertMessageOutcome
impl UnwindSafe for InsertMessageOutcome
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