pub enum Authentication {
Password {
username: String,
password: String,
},
ApiKey {
username: String,
key: String,
},
OAuth {
provider: String,
token: String,
},
}
Expand description
A value that contains one of the ways to authenticate to Assemblyline
Variants§
Password
Fields
Authenticate with a password
ApiKey
Fields
Authenticate with an api key
OAuth
Authenticate with an oauth token
Auto Trait Implementations§
impl RefUnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnwindSafe for Authentication
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