pub struct InstallConfig { /* private fields */ }Expand description
The fixed configuration for a Witchcraft server.
Implementations§
Source§impl InstallConfig
impl InstallConfig
Sourcepub fn builder() -> Builder<ProductNameStage>
pub fn builder() -> Builder<ProductNameStage>
Returns a new builder.
Source§impl InstallConfig
impl InstallConfig
Sourcepub fn product_name(&self) -> &str
pub fn product_name(&self) -> &str
Returns the service’s name.
Required.
Sourcepub fn product_version(&self) -> &str
pub fn product_version(&self) -> &str
Returns the service’s version.
Required.
Sourcepub fn management_port(&self) -> Option<u16>
pub fn management_port(&self) -> Option<u16>
Returns the port that the server’s management APIs will listen on.
Defaults to port().
Sourcepub fn keystore(&self) -> &KeystoreConfig
pub fn keystore(&self) -> &KeystoreConfig
Returns the server’s TLS key configuration.
Sourcepub fn client_auth_truststore(&self) -> Option<&ClientAuthTruststoreConfig>
pub fn client_auth_truststore(&self) -> Option<&ClientAuthTruststoreConfig>
Returns the server’s TLS client authentication truststore configuration.
If set, the server will request (but not require) the client to authenticate itself during the TLS handshake.
If a certificate is present and validated against the trust roots, all requests made over that connection will
include a ClientCertificate extension.
Defaults to None.
Sourcepub fn context_path(&self) -> &str
pub fn context_path(&self) -> &str
Returns the server’s context path.
This must either be equal to / or start but not end with a /.
Defaults to /.
Sourcepub fn use_console_log(&self) -> bool
pub fn use_console_log(&self) -> bool
If true, the server will log to standard output rather than to files.
Defaults to true if running in a container and false otherwise.
Sourcepub fn server(&self) -> &ServerConfig
pub fn server(&self) -> &ServerConfig
Returns advanced server settings.
Sourcepub fn minidump(&self) -> &MinidumpConfig
pub fn minidump(&self) -> &MinidumpConfig
Returns minidump settings.
Trait Implementations§
Source§impl AsRef<InstallConfig> for InstallConfig
impl AsRef<InstallConfig> for InstallConfig
Source§fn as_ref(&self) -> &InstallConfig
fn as_ref(&self) -> &InstallConfig
Source§impl Clone for InstallConfig
impl Clone for InstallConfig
Source§fn clone(&self) -> InstallConfig
fn clone(&self) -> InstallConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more