pub struct BuiltServerConfig {Show 13 fields
pub server_info: ServerInfo,
pub transport: TransportType,
pub cors_policy: Option<CorsPolicy>,
pub middleware: Vec<MiddlewareConfig>,
pub custom_endpoints: Vec<CustomEndpoint>,
pub metrics_endpoint: Option<String>,
pub health_endpoint: Option<String>,
pub connection_timeout: Duration,
pub max_connections: usize,
pub enable_compression: bool,
pub enable_tls: bool,
pub tls_cert_path: Option<String>,
pub tls_key_path: Option<String>,
}
Expand description
Built server configuration
Fields§
§server_info: ServerInfo
§transport: TransportType
§cors_policy: Option<CorsPolicy>
§middleware: Vec<MiddlewareConfig>
§custom_endpoints: Vec<CustomEndpoint>
§metrics_endpoint: Option<String>
§health_endpoint: Option<String>
§connection_timeout: Duration
§max_connections: usize
§enable_compression: bool
§enable_tls: bool
§tls_cert_path: Option<String>
§tls_key_path: Option<String>
Implementations§
Trait Implementations§
Source§impl Clone for BuiltServerConfig
impl Clone for BuiltServerConfig
Source§fn clone(&self) -> BuiltServerConfig
fn clone(&self) -> BuiltServerConfig
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 moreAuto Trait Implementations§
impl Freeze for BuiltServerConfig
impl RefUnwindSafe for BuiltServerConfig
impl Send for BuiltServerConfig
impl Sync for BuiltServerConfig
impl Unpin for BuiltServerConfig
impl UnwindSafe for BuiltServerConfig
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