Struct imap_types::mailbox::ListCharString
source · pub struct ListCharString<'a>(_);
Implementations§
source§impl<'a> ListCharString<'a>
impl<'a> ListCharString<'a>
pub fn validate(value: impl AsRef<[u8]>) -> Result<(), ListCharStringError>
sourcepub fn unvalidated<C>(inner: C) -> Selfwhere
C: Into<Cow<'a, str>>,
Available on crate feature unvalidated
only.
pub fn unvalidated<C>(inner: C) -> Selfwhere C: Into<Cow<'a, str>>,
unvalidated
only.Constructs a list char string without validation.
Warning: IMAP conformance
The caller must ensure that inner
is valid according to Self::validate
. Failing to do
so may create invalid/unparsable IMAP messages, or even produce unintended protocol flows.
Do not call this constructor with untrusted data.
Trait Implementations§
source§impl<'a> Arbitrary<'a> for ListCharString<'a>
impl<'a> Arbitrary<'a> for ListCharString<'a>
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> AsRef<[u8]> for ListCharString<'a>
impl<'a> AsRef<[u8]> for ListCharString<'a>
source§impl<'a> Clone for ListCharString<'a>
impl<'a> Clone for ListCharString<'a>
source§fn clone(&self) -> ListCharString<'a>
fn clone(&self) -> ListCharString<'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 ListCharString<'a>
impl<'a> Debug for ListCharString<'a>
source§impl<'de, 'a> Deserialize<'de> for ListCharString<'a>
impl<'de, 'a> Deserialize<'de> for ListCharString<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> Hash for ListCharString<'a>
impl<'a> Hash for ListCharString<'a>
source§impl<'a> IntoBoundedStatic for ListCharString<'a>
impl<'a> IntoBoundedStatic for ListCharString<'a>
§type Static = ListCharString<'static>
type Static = ListCharString<'static>
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq<ListCharString<'a>> for ListCharString<'a>
impl<'a> PartialEq<ListCharString<'a>> for ListCharString<'a>
source§fn eq(&self, other: &ListCharString<'a>) -> bool
fn eq(&self, other: &ListCharString<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for ListCharString<'a>
impl<'a> Serialize for ListCharString<'a>
source§impl<'a> ToBoundedStatic for ListCharString<'a>
impl<'a> ToBoundedStatic for ListCharString<'a>
source§impl<'a> TryFrom<&'a str> for ListCharString<'a>
impl<'a> TryFrom<&'a str> for ListCharString<'a>
source§impl<'a> TryFrom<String> for ListCharString<'a>
impl<'a> TryFrom<String> for ListCharString<'a>
impl<'a> Eq for ListCharString<'a>
impl<'a> StructuralEq for ListCharString<'a>
impl<'a> StructuralPartialEq for ListCharString<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ListCharString<'a>
impl<'a> Send for ListCharString<'a>
impl<'a> Sync for ListCharString<'a>
impl<'a> Unpin for ListCharString<'a>
impl<'a> UnwindSafe for ListCharString<'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