pub struct MiddlewareConfig {
pub allowed_origins: String,
}Expand description
Runtime configuration for the middleware stack.
Populated by the binary at startup and passed into stack. The
middleware crate itself never reads from the process environment.
Fields§
§allowed_origins: StringComma-separated list of allowed CORS origins. Empty = allow any
(the local-development default; production binaries must populate
this from ALLOWED_ORIGINS).
Trait Implementations§
Source§impl Clone for MiddlewareConfig
impl Clone for MiddlewareConfig
Source§fn clone(&self) -> MiddlewareConfig
fn clone(&self) -> MiddlewareConfig
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 MiddlewareConfig
impl Debug for MiddlewareConfig
Source§impl Default for MiddlewareConfig
impl Default for MiddlewareConfig
Source§fn default() -> MiddlewareConfig
fn default() -> MiddlewareConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MiddlewareConfig
impl RefUnwindSafe for MiddlewareConfig
impl Send for MiddlewareConfig
impl Sync for MiddlewareConfig
impl Unpin for MiddlewareConfig
impl UnsafeUnpin for MiddlewareConfig
impl UnwindSafe for MiddlewareConfig
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