Enum imap_types::response::Status
source · pub enum Status<'a> {
Untagged(StatusBody<'a>),
Tagged(Tagged<'a>),
Bye(Bye<'a>),
}Expand description
Status response.
Variants§
Implementations§
source§impl<'a> Status<'a>
impl<'a> Status<'a>
pub fn new<T>( tag: Option<Tag<'a>>, kind: StatusKind, code: Option<Code<'a>>, text: T, ) -> Result<Self, T::Error>
pub fn ok<T>( tag: Option<Tag<'a>>, code: Option<Code<'a>>, text: T, ) -> Result<Self, T::Error>
pub fn no<T>( tag: Option<Tag<'a>>, code: Option<Code<'a>>, text: T, ) -> Result<Self, T::Error>
pub fn bad<T>( tag: Option<Tag<'a>>, code: Option<Code<'a>>, text: T, ) -> Result<Self, T::Error>
pub fn bye<T>(code: Option<Code<'a>>, text: T) -> Result<Self, T::Error>
pub fn tag(&self) -> Option<&Tag<'_>>
pub fn code(&self) -> Option<&Code<'_>>
pub fn text(&self) -> &Text<'_>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for Status<'a>
impl<'a> Arbitrary<'a> for Status<'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<'de, 'a> Deserialize<'de> for Status<'a>
impl<'de, 'a> Deserialize<'de> for Status<'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> IntoBoundedStatic for Status<'a>
impl<'a> IntoBoundedStatic for Status<'a>
source§impl<'a> PartialEq for Status<'a>
impl<'a> PartialEq for Status<'a>
source§impl<'a> ToBoundedStatic for Status<'a>
impl<'a> ToBoundedStatic for Status<'a>
impl<'a> Eq for Status<'a>
impl<'a> StructuralPartialEq for Status<'a>
Auto Trait Implementations§
impl<'a> Freeze for Status<'a>
impl<'a> RefUnwindSafe for Status<'a>
impl<'a> Send for Status<'a>
impl<'a> Sync for Status<'a>
impl<'a> Unpin for Status<'a>
impl<'a> UnwindSafe for Status<'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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)