pub struct MessagePacket {
pub text: Option<String>,
pub username: Option<String>,
pub id: Option<usize>,
pub code: Option<MessageCode>,
pub colors: MessageColors,
pub seq: usize,
}Fields§
§text: Option<String>§username: Option<String>§id: Option<usize>§code: Option<MessageCode>§colors: MessageColors§seq: usizeTrait Implementations§
Source§impl Clone for MessagePacket
impl Clone for MessagePacket
Source§fn clone(&self) -> MessagePacket
fn clone(&self) -> MessagePacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MessagePacket
impl Default for MessagePacket
Source§impl<'de> SchemaRead<'de> for MessagePacket
impl<'de> SchemaRead<'de> for MessagePacket
Source§impl SchemaWrite for MessagePacket
impl SchemaWrite for MessagePacket
Auto Trait Implementations§
impl Freeze for MessagePacket
impl RefUnwindSafe for MessagePacket
impl Send for MessagePacket
impl Sync for MessagePacket
impl Unpin for MessagePacket
impl UnwindSafe for MessagePacket
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,
Source§impl<'de, T> Deserialize<'de> for Twhere
T: SchemaRead<'de>,
impl<'de, T> Deserialize<'de> for Twhere
T: SchemaRead<'de>,
Source§impl<T> DeserializeOwned for Twhere
T: SchemaReadOwned,
impl<T> DeserializeOwned for Twhere
T: SchemaReadOwned,
Source§fn deserialize_from<'de>(
src: &mut impl Reader<'de>,
) -> Result<Self::Dst, ReadError>
fn deserialize_from<'de>( src: &mut impl Reader<'de>, ) -> Result<Self::Dst, ReadError>
Deserialize from the given
Reader into a new Self::Dst.Source§fn deserialize_from_into<'de>(
src: &mut impl Reader<'de>,
dst: &mut MaybeUninit<Self::Dst>,
) -> Result<(), ReadError>
fn deserialize_from_into<'de>( src: &mut impl Reader<'de>, dst: &mut MaybeUninit<Self::Dst>, ) -> Result<(), ReadError>
Deserialize from the given
Reader into dst.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Serialize for Twhere
T: SchemaWrite + ?Sized,
impl<T> Serialize for Twhere
T: SchemaWrite + ?Sized,
Source§fn serialize(src: &Self::Src) -> Result<Vec<u8>, WriteError>
fn serialize(src: &Self::Src) -> Result<Vec<u8>, WriteError>
Serialize a serializable type into a
Vec of bytes.Source§fn serialize_into(
dst: &mut impl Writer,
src: &Self::Src,
) -> Result<(), WriteError>
fn serialize_into( dst: &mut impl Writer, src: &Self::Src, ) -> Result<(), WriteError>
Serialize a serializable type into the given byte buffer.
Source§fn serialized_size(src: &Self::Src) -> Result<u64, WriteError>
fn serialized_size(src: &Self::Src) -> Result<u64, WriteError>
Get the size in bytes of the type when serialized.