pub struct ServerConfig {
pub name: String,
pub version: String,
pub description: Option<String>,
pub bind_address: String,
pub port: u16,
pub enable_tls: bool,
pub tls: Option<TlsConfig>,
pub timeouts: TimeoutConfig,
pub rate_limiting: RateLimitingConfig,
pub logging: LoggingConfig,
pub additional: HashMap<String, Value>,
}
Expand description
Server configuration
Fields§
§name: String
Server name
version: String
Server version
description: Option<String>
Server description
bind_address: String
Bind address
port: u16
Bind port
enable_tls: bool
Enable TLS
tls: Option<TlsConfig>
TLS configuration
timeouts: TimeoutConfig
Timeout configuration
rate_limiting: RateLimitingConfig
Rate limiting configuration
logging: LoggingConfig
Logging configuration
additional: HashMap<String, Value>
Additional configuration
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Source§impl Default for ServerConfig
impl Default for ServerConfig
Source§impl<'de> Deserialize<'de> for ServerConfig
impl<'de> Deserialize<'de> for ServerConfig
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 ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnwindSafe for ServerConfig
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
Mutably borrows from an owned value. Read more