pub struct ServerConfig {
pub port: u16,
pub host: String,
pub log_level: String,
pub enable_cors: bool,
pub cors_origins: String,
pub cors_methods: String,
pub cors_headers: String,
pub max_body_size: usize,
pub terminology_server: Option<String>,
}Expand description
Server configuration
Fields§
§port: u16Port to bind the server to
host: StringHost address to bind to
log_level: StringLog level for the server
enable_cors: boolWhether to enable CORS
cors_origins: StringAllowed CORS origins (comma-separated list, “*” for any)
cors_methods: StringAllowed CORS methods (comma-separated list, “*” for any)
cors_headers: StringAllowed CORS headers (comma-separated list, “*” for any)
max_body_size: usizeMaximum request body size in bytes, measured after decompression
terminology_server: Option<String>Terminology server URL (defaults based on FHIR version)
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 (const: unstable) · 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 From<ServerArgs> for ServerConfig
impl From<ServerArgs> for ServerConfig
Source§fn from(args: ServerArgs) -> Self
fn from(args: ServerArgs) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin 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