pub struct BodyLimitConfig {
pub max_size: String,
pub parsed: usize,
pub display: bool,
}Expand description
§Body Limit Configuration
Configuration for the Body Limit Layer This configuration allows you to set a maximum size for request bodies.
§Fields:
-
max_size: A string representing the maximum allowed size for request bodies (e.g “1MB”, “500KB”). -
parsed: The parsed size in bytes (usize) derived frommax_size. -
display: A boolean indicating if the configuration should be displayed.
Fields§
§max_size: String§parsed: usize§display: boolTrait Implementations§
Source§impl Clone for BodyLimitConfig
impl Clone for BodyLimitConfig
Source§fn clone(&self) -> BodyLimitConfig
fn clone(&self) -> BodyLimitConfig
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 moreSource§impl Debug for BodyLimitConfig
impl Debug for BodyLimitConfig
Source§impl Default for BodyLimitConfig
impl Default for BodyLimitConfig
Source§impl<'de> Deserialize<'de> for BodyLimitConfig
impl<'de> Deserialize<'de> for BodyLimitConfig
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DisplayConfig for BodyLimitConfig
impl DisplayConfig for BodyLimitConfig
Auto Trait Implementations§
impl Freeze for BodyLimitConfig
impl RefUnwindSafe for BodyLimitConfig
impl Send for BodyLimitConfig
impl Sync for BodyLimitConfig
impl Unpin for BodyLimitConfig
impl UnwindSafe for BodyLimitConfig
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