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 moreSource§impl Debug for InstallConfig
impl Debug for InstallConfig
Source§impl<'de> Deserialize<'de> for InstallConfig
impl<'de> Deserialize<'de> for InstallConfig
Source§fn deserialize<D>(
deserializer: D,
) -> Result<InstallConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<InstallConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Source§impl PartialEq for InstallConfig
impl PartialEq for InstallConfig
Source§impl Validate for InstallConfig
impl Validate for InstallConfig
impl StructuralPartialEq for InstallConfig
Auto Trait Implementations§
impl Freeze for InstallConfig
impl RefUnwindSafe for InstallConfig
impl Send for InstallConfig
impl Sync for InstallConfig
impl Unpin for InstallConfig
impl UnwindSafe for InstallConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more