pub struct Headers {
pub id: String,
pub message_type: String,
pub from: String,
pub to: String,
pub created_at: u64,
pub ttl: u64,
pub content_type: String,
pub reply_to: Option<String>,
pub content_hash: [u8; 32],
pub signature: Vec<u8>,
}Expand description
Signed message headers (without content body).
Headers include a BLAKE3 hash of the content for integrity verification.
Extracted from a Message via Message::headers or Message::unsigned_headers.
Fields§
§id: String§message_type: String§from: String§to: String§created_at: u64§ttl: u64§content_type: String§reply_to: Option<String>§content_hash: [u8; 32]§signature: Vec<u8>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Headers
impl<'de> Deserialize<'de> for Headers
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 Headers
impl StructuralPartialEq for Headers
Auto Trait Implementations§
impl Freeze for Headers
impl RefUnwindSafe for Headers
impl Send for Headers
impl Sync for Headers
impl Unpin for Headers
impl UnsafeUnpin for Headers
impl UnwindSafe for Headers
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