Struct minimq::types::Utf8String
source · pub struct Utf8String<'a>(pub &'a str);
Expand description
A wrapper type for “UTF-8 Encoded Strings” as defined in the MQTT v5 specification.
§Note
This wrapper type is primarily used to support custom serde functionality.
Tuple Fields§
§0: &'a str
Trait Implementations§
source§impl<'a> Clone for Utf8String<'a>
impl<'a> Clone for Utf8String<'a>
source§fn clone(&self) -> Utf8String<'a>
fn clone(&self) -> Utf8String<'a>
Returns a copy 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<'a> Debug for Utf8String<'a>
impl<'a> Debug for Utf8String<'a>
source§impl<'a, 'de: 'a> Deserialize<'de> for Utf8String<'a>
impl<'a, 'de: 'a> Deserialize<'de> for Utf8String<'a>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> PartialEq for Utf8String<'a>
impl<'a> PartialEq for Utf8String<'a>
source§fn eq(&self, other: &Utf8String<'a>) -> bool
fn eq(&self, other: &Utf8String<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for Utf8String<'a>
impl<'a> Serialize for Utf8String<'a>
impl<'a> Copy for Utf8String<'a>
impl<'a> StructuralPartialEq for Utf8String<'a>
Auto Trait Implementations§
impl<'a> Freeze for Utf8String<'a>
impl<'a> RefUnwindSafe for Utf8String<'a>
impl<'a> Send for Utf8String<'a>
impl<'a> Sync for Utf8String<'a>
impl<'a> Unpin for Utf8String<'a>
impl<'a> UnwindSafe for Utf8String<'a>
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