pub enum Icinga2Auth {
Basic {
username: String,
password: String,
},
ClientCertificate {
identity_pem: Vec<u8>,
},
}Expand description
how a client authenticates against the Icinga API
used with from_parts on the clients, the Debug implementation
does not print the password or the private key
Variants§
Basic
HTTP basic auth as an Icinga ApiUser with a password
ClientCertificate
TLS client certificate auth as an Icinga ApiUser with a client_cn,
e.g. with the certificate of an Icinga agent
Implementations§
Source§impl Icinga2Auth
impl Icinga2Auth
Trait Implementations§
Source§impl Clone for Icinga2Auth
impl Clone for Icinga2Auth
Auto Trait Implementations§
impl Forget for Icinga2Auth
impl Freeze for Icinga2Auth
impl Move for Icinga2Auth
impl RefUnwindSafe for Icinga2Auth
impl Send for Icinga2Auth
impl Sync for Icinga2Auth
impl Unpin for Icinga2Auth
impl UnsafeUnpin for Icinga2Auth
impl UnwindSafe for Icinga2Auth
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