pub struct Config {
pub body_limit: u64,
pub request_timeout: Duration,
pub cors_origin: Option<String>,
}Fields§
§body_limit: u64Max request body in bytes (default 1 MB)
request_timeout: DurationPer-request timeout (default 30 s)
cors_origin: Option<String>Allowed CORS origins — “*” to allow all
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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