Struct imap_types::response::StatusBody
source · pub struct StatusBody<'a> {
pub kind: StatusKind,
pub code: Option<Code<'a>>,
pub text: Text<'a>,
}Expand description
Status body.
Note: Don’t use code: None and a text that starts with “[” as this would be ambiguous in IMAP.
We could fix this but the fix would make this type unconformable to use.
Fields§
§kind: StatusKindStatus kind.
code: Option<Code<'a>>Response code (optional).
text: Text<'a>Human-readable text that MAY be displayed to the user.
Note: Must be at least 1 character.
Trait Implementations§
source§impl<'a> Clone for StatusBody<'a>
impl<'a> Clone for StatusBody<'a>
source§fn clone(&self) -> StatusBody<'a>
fn clone(&self) -> StatusBody<'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 StatusBody<'a>
impl<'a> Debug for StatusBody<'a>
source§impl<'de, 'a> Deserialize<'de> for StatusBody<'a>
impl<'de, 'a> Deserialize<'de> for StatusBody<'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 StatusBody<'a>
impl<'a> Hash for StatusBody<'a>
source§impl<'a> IntoBoundedStatic for StatusBody<'a>
impl<'a> IntoBoundedStatic for StatusBody<'a>
§type Static = StatusBody<'static>
type Static = StatusBody<'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 for StatusBody<'a>
impl<'a> PartialEq for StatusBody<'a>
source§fn eq(&self, other: &StatusBody<'a>) -> bool
fn eq(&self, other: &StatusBody<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'a> Serialize for StatusBody<'a>
impl<'a> Serialize for StatusBody<'a>
source§impl<'a> ToBoundedStatic for StatusBody<'a>
impl<'a> ToBoundedStatic for StatusBody<'a>
impl<'a> Eq for StatusBody<'a>
impl<'a> StructuralPartialEq for StatusBody<'a>
Auto Trait Implementations§
impl<'a> Freeze for StatusBody<'a>
impl<'a> RefUnwindSafe for StatusBody<'a>
impl<'a> Send for StatusBody<'a>
impl<'a> Sync for StatusBody<'a>
impl<'a> Unpin for StatusBody<'a>
impl<'a> UnwindSafe for StatusBody<'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)