pub enum JmapAuth {
Basic {
login: String,
secret: JmapSecret,
},
Bearer {
secret: JmapSecret,
},
}Available on crate features
jmap and wizard only.Expand description
JMAP authentication method.
Variants§
Basic
Basic authentication with a login and a password secret.
Bearer
Bearer authentication with an OAuth access token secret.
Fields
§
secret: JmapSecretThe access token secret.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JmapAuth
impl RefUnwindSafe for JmapAuth
impl Send for JmapAuth
impl Sync for JmapAuth
impl Unpin for JmapAuth
impl UnsafeUnpin for JmapAuth
impl UnwindSafe for JmapAuth
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