pub struct MessageRef {
pub kind: String,
pub locator: String,
pub digest: Option<String>,
}Expand description
Names a reference a message carries: a kind (a selector), a locator
(an opaque pointer, meaningful only to the calling application), and an
optional digest (a lower-hex content hash of whatever the locator
names).
Replaces the source’s four structured HarnessMailRefV1 variants
(Run/ContextPack/Result/WorkspacePath), each of which named a
harness-specific entity this crate must never learn about.
The mailbox stores a ref and returns it verbatim; it never resolves one. Resolving a reference is the calling application’s job, because only that application knows what its own references mean.
Fields§
§kind: String§locator: String§digest: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for MessageRef
impl Clone for MessageRef
Source§impl Debug for MessageRef
impl Debug for MessageRef
Source§impl<'de> Deserialize<'de> for MessageRef
impl<'de> Deserialize<'de> for MessageRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MessageRef
Source§impl PartialEq for MessageRef
impl PartialEq for MessageRef
Source§impl Serialize for MessageRef
impl Serialize for MessageRef
impl StructuralPartialEq for MessageRef
Auto Trait Implementations§
impl Freeze for MessageRef
impl RefUnwindSafe for MessageRef
impl Send for MessageRef
impl Sync for MessageRef
impl Unpin for MessageRef
impl UnsafeUnpin for MessageRef
impl UnwindSafe for MessageRef
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