pub struct Payload {
pub bytes: Vec<u8>,
pub binary: bool,
}Expand description
Serializer output: UTF-8 text or opaque binary bytes.
Text payloads are stored with the frame’s UTF-8 tag; binary payloads keep their exact bytes. Compression envelopes wrap either form transparently.
Fields§
§bytes: Vec<u8>The serializer output. Read as UTF-8 unless binary; ill-formed text
sequences are replaced when the payload is stored.
binary: booltrue for binary output, false for UTF-8 text.
Implementations§
Trait Implementations§
impl Eq for Payload
impl StructuralPartialEq for Payload
Auto Trait Implementations§
impl Freeze for Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.