Struct imap_types::response::Greeting
source · [−]pub struct Greeting<'a> {
pub kind: GreetingKind,
pub code: Option<Code<'a>>,
pub text: Text<'a>,
}Fields
kind: GreetingKindcode: Option<Code<'a>>text: Text<'a>Implementations
sourceimpl<'a> Greeting<'a>
impl<'a> Greeting<'a>
pub fn new(
kind: GreetingKind,
code: Option<Code<'a>>,
text: &'a str
) -> Result<Self, ()>
pub fn ok(code: Option<Code<'a>>, text: &'a str) -> Result<Self, ()>
pub fn preauth(code: Option<Code<'a>>, text: &'a str) -> Result<Self, ()>
pub fn bye(code: Option<Code<'a>>, text: &'a str) -> Result<Self, ()>
Trait Implementations
impl<'a> Eq for Greeting<'a>
impl<'a> StructuralEq for Greeting<'a>
impl<'a> StructuralPartialEq for Greeting<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Greeting<'a>
impl<'a> Send for Greeting<'a>
impl<'a> Sync for Greeting<'a>
impl<'a> Unpin for Greeting<'a>
impl<'a> UnwindSafe for Greeting<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more