Struct witchcraft_server::config::install::InstallConfig
source · [−]pub struct InstallConfig { /* private fields */ }Expand description
The fixed configuration for a Witchcraft server.
Implementations
sourceimpl 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 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.
sourceimpl InstallConfig
impl InstallConfig
sourcepub fn builder() -> BuilderProductNameStage
pub fn builder() -> BuilderProductNameStage
Returns a new builder.
Trait Implementations
sourceimpl AsRef<InstallConfig> for InstallConfig
impl AsRef<InstallConfig> for InstallConfig
sourcefn as_ref(&self) -> &InstallConfig
fn as_ref(&self) -> &InstallConfig
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InstallConfig
impl Clone for InstallConfig
sourcefn clone(&self) -> InstallConfig
fn clone(&self) -> InstallConfig
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 more
sourceimpl Debug for InstallConfig
impl Debug for InstallConfig
sourceimpl<'de> Deserialize<'de> for InstallConfig
impl<'de> Deserialize<'de> for InstallConfig
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<InstallConfig> for InstallConfig
impl PartialEq<InstallConfig> for InstallConfig
sourcefn eq(&self, other: &InstallConfig) -> bool
fn eq(&self, other: &InstallConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &InstallConfig) -> bool
fn ne(&self, other: &InstallConfig) -> bool
This method tests for !=.
sourceimpl Validate for InstallConfig
impl Validate for InstallConfig
type Error = ConfigError
type Error = ConfigError
The error returned for an invalid value.
impl StructuralPartialEq for InstallConfig
Auto Trait Implementations
impl RefUnwindSafe for InstallConfig
impl Send for InstallConfig
impl Sync for InstallConfig
impl Unpin for InstallConfig
impl UnwindSafe for InstallConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more