pub struct AttachmentMeta {
pub id: String,
pub filename: String,
pub media_type: String,
pub byte_len: u64,
pub content_hash: String,
}Expand description
Metadata for a content-addressed attachment blob (plan §5).
The blob content itself is stored out-of-band and referenced by content_hash; this
struct records only the descriptive metadata needed to present and verify it.
Fields§
§id: String§filename: String§media_type: StringMIME/media type, e.g. “application/pdf” or “image/png”.
byte_len: u64§content_hash: StringContent-address of the blob (e.g. a hex digest). This is the load-bearing anchor.
Implementations§
Trait Implementations§
Source§impl Clone for AttachmentMeta
impl Clone for AttachmentMeta
Source§impl Debug for AttachmentMeta
impl Debug for AttachmentMeta
Source§impl<'de> Deserialize<'de> for AttachmentMeta
impl<'de> Deserialize<'de> for AttachmentMeta
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 AttachmentMeta
Source§impl PartialEq for AttachmentMeta
impl PartialEq for AttachmentMeta
Source§impl Serialize for AttachmentMeta
impl Serialize for AttachmentMeta
impl StructuralPartialEq for AttachmentMeta
Auto Trait Implementations§
impl Freeze for AttachmentMeta
impl RefUnwindSafe for AttachmentMeta
impl Send for AttachmentMeta
impl Sync for AttachmentMeta
impl Unpin for AttachmentMeta
impl UnsafeUnpin for AttachmentMeta
impl UnwindSafe for AttachmentMeta
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