Struct saml_test_server::util::ServerConfig
source · [−]pub struct ServerConfig {
pub bind_address: String,
pub public_hostname: String,
pub tls_cert_path: String,
pub tls_key_path: String,
pub entity_id: String,
pub sp_metadata_files: Option<Vec<&'static str>>,
pub sp_metadata: HashMap<String, ServiceProvider>,
pub session_lifetime: u128,
pub saml_cert_path: String,
pub saml_key_path: String,
pub saml_signing_key: Option<PKey<Private>>,
pub saml_signing_cert: Option<X509>,
}
Fields
bind_address: String
public_hostname: String
tls_cert_path: String
tls_key_path: String
entity_id: String
sp_metadata_files: Option<Vec<&'static str>>
sp_metadata: HashMap<String, ServiceProvider>
session_lifetime: u128
saml_cert_path: String
saml_key_path: String
saml_signing_key: Option<PKey<Private>>
saml_signing_cert: Option<X509>
Implementations
sourceimpl ServerConfig
impl ServerConfig
pub fn default() -> Self
sourcepub fn from_filename_and_env(path: String) -> Self
pub fn from_filename_and_env(path: String) -> Self
Pass this a filename (with or without extension) and it’ll choose from JSON/YAML/TOML etc and also check environment variables starting with SAML_
Trait Implementations
sourceimpl Clone for ServerConfig
impl Clone for ServerConfig
sourcefn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ServerConfig
impl Debug for ServerConfig
sourceimpl From<ServerConfig> for AppState
impl From<ServerConfig> for AppState
sourcefn from(server_config: ServerConfig) -> AppState
fn from(server_config: ServerConfig) -> AppState
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more