pub struct Msg<'raw> {
pub body: &'raw str,
pub from_id: &'raw str,
pub id: &'raw str,
pub to_ids: Vec<&'raw str>,
pub _type: &'raw str,
}Fields§
§body: &'raw str§from_id: &'raw str§id: &'raw str§to_ids: Vec<&'raw str>§_type: &'raw strTrait Implementations§
impl<'raw> StructuralPartialEq for Msg<'raw>
Source§impl<'raw> SubRecord<'raw> for Msg<'raw>
impl<'raw> SubRecord<'raw> for Msg<'raw>
const MIN_SERIALIZED_SIZE: usize
Source§fn serialized_size(&self) -> usize
fn serialized_size(&self) -> usize
Exact size this will be once serialized in bytes. Read more
Source§fn _serialize_chained<W: Write>(&self, dest: &mut W) -> SeResult<usize>
fn _serialize_chained<W: Write>(&self, dest: &mut W) -> SeResult<usize>
Should only be called from generated code!
Serialize this record. It is highly recommend to use a buffered writer.
Source§unsafe fn _serialize_chained_unaligned<W: Write>(
zelf: *const Self,
dest: &mut W,
) -> SeResult<usize>
unsafe fn _serialize_chained_unaligned<W: Write>( zelf: *const Self, dest: &mut W, ) -> SeResult<usize>
Should only be called from generated code!
Serialize this record. It is highly recommend to use a buffered writer. Read more
Source§fn _deserialize_chained(raw: &'raw [u8]) -> DeResult<(usize, Self)>
fn _deserialize_chained(raw: &'raw [u8]) -> DeResult<(usize, Self)>
Should only be called from generated code!
Deserialize this object as a sub component of a larger message. Returns a tuple of
(bytes_read, deserialized_value).
const EXACT_SERIALIZED_SIZE: Option<usize> = None
Auto Trait Implementations§
impl<'raw> Freeze for Msg<'raw>
impl<'raw> RefUnwindSafe for Msg<'raw>
impl<'raw> Send for Msg<'raw>
impl<'raw> Sync for Msg<'raw>
impl<'raw> Unpin for Msg<'raw>
impl<'raw> UnsafeUnpin for Msg<'raw>
impl<'raw> UnwindSafe for Msg<'raw>
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