Struct imap_types::response::Greeting
source · pub struct Greeting<'a> {
pub kind: GreetingKind,
pub code: Option<Code<'a>>,
pub text: Text<'a>,
}Fields§
§kind: GreetingKind§code: Option<Code<'a>>§text: Text<'a>Implementations§
source§impl<'a> Greeting<'a>
impl<'a> Greeting<'a>
pub fn new( kind: GreetingKind, code: Option<Code<'a>>, text: &'a str ) -> Result<Self, TextError>
pub fn ok(code: Option<Code<'a>>, text: &'a str) -> Result<Self, TextError>
pub fn preauth(code: Option<Code<'a>>, text: &'a str) -> Result<Self, TextError>
pub fn bye(code: Option<Code<'a>>, text: &'a str) -> Result<Self, TextError>
Trait Implementations§
source§impl<'a> PartialEq<Greeting<'a>> for Greeting<'a>
impl<'a> PartialEq<Greeting<'a>> for Greeting<'a>
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§
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