pub struct ServerValidationSection {
pub enabled: bool,
pub max_body_bytes: usize,
pub max_errors: usize,
}Expand description
Limits and policy for generated request validation.
Fields§
§enabled: boolValidate request inputs against their OpenAPI schemas.
max_body_bytes: usizeMaximum request-body bytes accepted before buffering is rejected.
max_errors: usizeMaximum number of normalized violations returned to a client.
Trait Implementations§
Source§impl Clone for ServerValidationSection
impl Clone for ServerValidationSection
Source§fn clone(&self) -> ServerValidationSection
fn clone(&self) -> ServerValidationSection
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 ServerValidationSection
impl Debug for ServerValidationSection
Source§impl Default for ServerValidationSection
impl Default for ServerValidationSection
Source§impl<'de> Deserialize<'de> for ServerValidationSectionwhere
ServerValidationSection: Default,
impl<'de> Deserialize<'de> for ServerValidationSectionwhere
ServerValidationSection: Default,
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
impl Eq for ServerValidationSection
Source§impl PartialEq for ServerValidationSection
impl PartialEq for ServerValidationSection
Source§impl Serialize for ServerValidationSection
impl Serialize for ServerValidationSection
impl StructuralPartialEq for ServerValidationSection
Auto Trait Implementations§
impl Freeze for ServerValidationSection
impl RefUnwindSafe for ServerValidationSection
impl Send for ServerValidationSection
impl Sync for ServerValidationSection
impl Unpin for ServerValidationSection
impl UnsafeUnpin for ServerValidationSection
impl UnwindSafe for ServerValidationSection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.