pub struct UserName(/* private fields */);Implementations§
Trait Implementations§
Source§impl ByteDeserializeSlice<UserName> for UserName
impl ByteDeserializeSlice<UserName> for UserName
Source§fn byte_deserialize(
des: &mut ByteDeserializerSlice<'_>,
) -> Result<UserName, SerDesError>
fn byte_deserialize( des: &mut ByteDeserializerSlice<'_>, ) -> Result<UserName, SerDesError>
If successful returns a new instance of T type struct, depleting exactly the right amount of bytes from ByteDeserializerSlice
Number of bytes depleted is determined by the struct T itself and its member types.
Source§fn byte_deserialize_take(
des: &mut ByteDeserializerSlice<'_>,
len: usize,
) -> Result<T, SerDesError>
fn byte_deserialize_take( des: &mut ByteDeserializerSlice<'_>, len: usize, ) -> Result<T, SerDesError>
if successful returns a new instance of T type struct, however ONLY depleting a maximum of
len bytes from ByteDeserializerSlice
Intended for types with variable length such as Strings, Vec, etc.
No bytes will be depleted if attempt was not successful.Source§impl ByteSerializeStack for UserName
impl ByteSerializeStack for UserName
fn byte_serialize_stack<const CAP: usize>( &self, ser: &mut ByteSerializerStack<CAP>, ) -> Result<(), SerDesError>
Source§impl<'de> Deserialize<'de> for UserName
impl<'de> Deserialize<'de> for UserName
Source§fn deserialize<D>(
deserializer: D,
) -> Result<UserName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<UserName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for UserName
impl Serialize for UserName
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for UserName
impl StructuralPartialEq for UserName
Auto Trait Implementations§
impl Freeze for UserName
impl RefUnwindSafe for UserName
impl Send for UserName
impl Sync for UserName
impl Unpin for UserName
impl UnwindSafe for UserName
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