pub struct Message {
pub metadata: MessageMetadata,
pub chunk: MessageChunk,
pub additional_chunks: Vec<MessageChunk>,
}Fields§
§metadata: MessageMetadata§chunk: MessageChunk§additional_chunks: Vec<MessageChunk>Implementations§
Source§impl Message
impl Message
pub fn text(&self) -> Option<Result<&str, Utf8Error>>
pub fn order(&self) -> &MessageOrder
pub fn thread_reference(&self) -> Option<&SixFour>
pub fn reaching_public_keys(&self) -> Option<&ReachingPublicKeys>
Trait Implementations§
Source§impl Digestible for Message
impl Digestible for Message
Source§fn hashable_bytes(&self) -> Vec<Box<dyn AsRef<[u8]> + '_>>
fn hashable_bytes(&self) -> Vec<Box<dyn AsRef<[u8]> + '_>>
Return a vector of byte references that represent this data structure. Read more
Source§fn digest(&self) -> CoreWrapper<Sha3_512Core>
fn digest(&self) -> CoreWrapper<Sha3_512Core>
Generate a SHA3-512 digest from the hashable bytes.
Source§fn finalized_digest(&self) -> [u8; 64]
fn finalized_digest(&self) -> [u8; 64]
Generate a finalized SHA3-512 digest as a 64-byte array.
Source§impl ProstCommunicableOwned<Response> for Message
impl ProstCommunicableOwned<Response> for Message
const COMMUNICATION_VARIANT: Response = Response::Message
fn to_communication_via_prost(self) -> Communication<T>
fn try_from_communication( communication: &Communication<T>, ) -> Result<Self, DecodeError>
Source§impl ProstDecode for Message
impl ProstDecode for Message
type EncodedType = Message
fn decode<M>(message: M) -> Result<Self, DecodeError>
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin 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