pub struct Message {
pub id: Ulid,
pub to: String,
pub from: String,
pub subject: String,
pub body: String,
pub refs: Vec<String>,
pub conversation: String,
pub hops: u64,
pub status: String,
pub delivery: String,
pub created_at: i64,
pub acked_at: Option<i64>,
}Expand description
13a (13.1): one message between agents, as Mnemo::inbox returns it.
Fields§
§id: UlidThe record’s id.
to: StringAn agent id, role:<role>, or all.
from: StringThe sender as it said, unproven until 13b.
subject: StringOne line.
body: StringThe body (may be empty).
refs: Vec<String>Record ids, a PR number, a ledger entry title.
conversation: StringThe conversation it belongs to.
hops: u64Its hop count (13.1b’s hop cap).
status: Stringunread or acked.
delivery: Stringsent, delivered, seen or done.
created_at: i64When it was posted, in unix seconds.
acked_at: Option<i64>When it was acked, if it was.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Message
impl Move 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