pub enum Icinga2InstanceFileAuth {
Password {
username: String,
password: String,
},
PasswordCommand {
username: String,
password_command: Vec<String>,
password_command_env: BTreeMap<String, String>,
},
ClientCertificate {
certificate: PathBuf,
key: PathBuf,
},
}Expand description
how an instance config file authenticates
Variants§
Password
basic auth with a literal password from the file
PasswordCommand
basic auth with a password printed by a command
Fields
ClientCertificate
TLS client certificate auth
Trait Implementations§
Source§impl Clone for Icinga2InstanceFileAuth
impl Clone for Icinga2InstanceFileAuth
Auto Trait Implementations§
impl Forget for Icinga2InstanceFileAuth
impl Freeze for Icinga2InstanceFileAuth
impl Move for Icinga2InstanceFileAuth
impl RefUnwindSafe for Icinga2InstanceFileAuth
impl Send for Icinga2InstanceFileAuth
impl Sync for Icinga2InstanceFileAuth
impl Unpin for Icinga2InstanceFileAuth
impl UnsafeUnpin for Icinga2InstanceFileAuth
impl UnwindSafe for Icinga2InstanceFileAuth
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