pub struct CommunicationDescriptor {
pub content_class: ContentClass,
pub body_sha256: String,
pub body_size: u64,
pub preview_lines: u32,
pub preview: String,
}Expand description
What was sent: classification plus the hash that binds this credential to a specific message body.
Fields§
§content_class: ContentClassContent classification, drawn from the closed set (§7.1.6).
Typed for the same reason as ChannelDescriptor.kind: the closed set
lived in prose while the field admitted any string.
body_sha256: StringSHA-256 of the message body, 64 lowercase hex characters.
body_size: u64Body length in bytes.
preview_lines: u32Number of body lines included in preview.
preview: StringTruncated body excerpt for human review at decision time.
Trait Implementations§
Source§impl Clone for CommunicationDescriptor
impl Clone for CommunicationDescriptor
Source§impl Debug for CommunicationDescriptor
impl Debug for CommunicationDescriptor
Source§impl<'de> Deserialize<'de> for CommunicationDescriptor
impl<'de> Deserialize<'de> for CommunicationDescriptor
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 CommunicationDescriptor
Source§impl PartialEq for CommunicationDescriptor
impl PartialEq for CommunicationDescriptor
Source§impl Serialize for CommunicationDescriptor
impl Serialize for CommunicationDescriptor
impl StructuralPartialEq for CommunicationDescriptor
Auto Trait Implementations§
impl Freeze for CommunicationDescriptor
impl RefUnwindSafe for CommunicationDescriptor
impl Send for CommunicationDescriptor
impl Sync for CommunicationDescriptor
impl Unpin for CommunicationDescriptor
impl UnsafeUnpin for CommunicationDescriptor
impl UnwindSafe for CommunicationDescriptor
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