pub struct ConfigSnapshot {
pub cors_allow_all: bool,
pub cors_allow_origins: String,
pub cors_allow_credentials: String,
pub cors_allow_methods: String,
pub cors_allow_headers: String,
pub cors_expose_headers: String,
pub cors_max_age: String,
pub rate_limit_max_requests: u32,
pub rate_limit_window_secs: u64,
pub log_format: String,
pub request_allocation_size: i64,
}Expand description
Fields§
§cors_allow_all: boolRWS_CONFIG_CORS_ALLOW_ALL
cors_allow_origins: StringRWS_CONFIG_CORS_ALLOW_ORIGINS
cors_allow_credentials: StringRWS_CONFIG_CORS_ALLOW_CREDENTIALS
cors_allow_methods: StringRWS_CONFIG_CORS_ALLOW_METHODS
cors_allow_headers: StringRWS_CONFIG_CORS_ALLOW_HEADERS
cors_expose_headers: StringRWS_CONFIG_CORS_EXPOSE_HEADERS
cors_max_age: StringRWS_CONFIG_CORS_MAX_AGE
rate_limit_max_requests: u32RWS_CONFIG_RATE_LIMIT_MAX_REQUESTS
rate_limit_window_secs: u64RWS_CONFIG_RATE_LIMIT_WINDOW_SECS
log_format: StringRWS_CONFIG_LOG_FORMAT
request_allocation_size: i64RWS_CONFIG_REQUEST_ALLOCATION_SIZE_IN_BYTES
Trait Implementations§
Source§impl Clone for ConfigSnapshot
impl Clone for ConfigSnapshot
Source§fn clone(&self) -> ConfigSnapshot
fn clone(&self) -> ConfigSnapshot
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 moreAuto Trait Implementations§
impl Freeze for ConfigSnapshot
impl RefUnwindSafe for ConfigSnapshot
impl Send for ConfigSnapshot
impl Sync for ConfigSnapshot
impl Unpin for ConfigSnapshot
impl UnsafeUnpin for ConfigSnapshot
impl UnwindSafe for ConfigSnapshot
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