pub struct KanidmClientConfigInstance {
pub uri: Option<String>,
pub verify_hostnames: Option<bool>,
pub verify_ca: Option<bool>,
pub ca_path: Option<String>,
pub connect_timeout: Option<u64>,
}
Expand description
Settings describing a single instance.
Fields§
§uri: Option<String>
The URL of the server, ie https://example.com
.
Environment variable is KANIDM_URL
. Yeah, we know.
verify_hostnames: Option<bool>
Whether to verify the TLS certificate of the server matches the hostname you connect to, defaults to true
.
Environment variable is slightly inverted - KANIDM_SKIP_HOSTNAME_VERIFICATION
.
verify_ca: Option<bool>
Whether to verify the Certificate Authority details of the server’s TLS certificate, defaults to true
.
Environment variable is slightly inverted - KANIDM_SKIP_HOSTNAME_VERIFICATION
.
ca_path: Option<String>
Optionally you can specify the path of a CA certificate to use for verifying the server, if you’re not using one trusted by your system certificate store.
Environment variable is KANIDM_CA_PATH
.
connect_timeout: Option<u64>
Connection Timeout for the client, in seconds.
Trait Implementations§
source§impl Debug for KanidmClientConfigInstance
impl Debug for KanidmClientConfigInstance
source§impl<'de> Deserialize<'de> for KanidmClientConfigInstance
impl<'de> Deserialize<'de> for KanidmClientConfigInstance
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KanidmClientConfigInstance
impl RefUnwindSafe for KanidmClientConfigInstance
impl Send for KanidmClientConfigInstance
impl Sync for KanidmClientConfigInstance
impl Unpin for KanidmClientConfigInstance
impl UnwindSafe for KanidmClientConfigInstance
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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