pub struct OpenApiDocumentLimits {
pub document_bytes: usize,
pub depth: usize,
pub nodes: usize,
pub object_members: usize,
pub array_length: usize,
pub string_bytes: usize,
pub paths: usize,
pub operations: usize,
}Expand description
Checked parser ceilings. Callers may narrow, but cannot widen, hard limits.
Fields§
§document_bytes: usize§depth: usize§nodes: usize§object_members: usize§array_length: usize§string_bytes: usize§paths: usize§operations: usizeImplementations§
Source§impl OpenApiDocumentLimits
impl OpenApiDocumentLimits
pub fn checked(self) -> Result<Self, OpenApiReviewError>
Trait Implementations§
Source§impl Clone for OpenApiDocumentLimits
impl Clone for OpenApiDocumentLimits
Source§fn clone(&self) -> OpenApiDocumentLimits
fn clone(&self) -> OpenApiDocumentLimits
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 moreimpl Copy for OpenApiDocumentLimits
Source§impl Debug for OpenApiDocumentLimits
impl Debug for OpenApiDocumentLimits
Source§impl Default for OpenApiDocumentLimits
impl Default for OpenApiDocumentLimits
impl Eq for OpenApiDocumentLimits
Source§impl PartialEq for OpenApiDocumentLimits
impl PartialEq for OpenApiDocumentLimits
impl StructuralPartialEq for OpenApiDocumentLimits
Auto Trait Implementations§
impl Freeze for OpenApiDocumentLimits
impl RefUnwindSafe for OpenApiDocumentLimits
impl Send for OpenApiDocumentLimits
impl Sync for OpenApiDocumentLimits
impl Unpin for OpenApiDocumentLimits
impl UnsafeUnpin for OpenApiDocumentLimits
impl UnwindSafe for OpenApiDocumentLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more