pub struct OpenApiDocument { /* private fields */ }Implementations§
Source§impl OpenApiDocument
impl OpenApiDocument
pub fn parse_json(body: &[u8]) -> Result<Self, OpenApiReviewError>
pub fn parse_json_with_limits( body: &[u8], limits: OpenApiDocumentLimits, ) -> Result<Self, OpenApiReviewError>
pub const fn kind(&self) -> OpenApiDocumentKind
pub const fn version(&self) -> Option<OpenApiVersion>
pub const fn path_count(&self) -> usize
pub fn operation_count(&self) -> usize
pub fn semantic_digest(&self) -> &str
pub fn digest(&self) -> &str
pub fn servers(&self) -> &[OpenApiServerMetadata]
pub fn security_schemes(&self) -> &[OpenApiSecuritySchemeKind]
pub const fn catalog(&self) -> &OpenApiCatalog
pub const fn title_present(&self) -> bool
pub const fn root_security(&self) -> &OpenApiSecurityMetadata
pub const fn root_security_declared(&self) -> bool
Trait Implementations§
Source§impl Clone for OpenApiDocument
impl Clone for OpenApiDocument
Source§fn clone(&self) -> OpenApiDocument
fn clone(&self) -> OpenApiDocument
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 OpenApiDocument
impl Debug for OpenApiDocument
impl Eq for OpenApiDocument
Source§impl PartialEq for OpenApiDocument
impl PartialEq for OpenApiDocument
impl StructuralPartialEq for OpenApiDocument
Auto Trait Implementations§
impl Freeze for OpenApiDocument
impl RefUnwindSafe for OpenApiDocument
impl Send for OpenApiDocument
impl Sync for OpenApiDocument
impl Unpin for OpenApiDocument
impl UnsafeUnpin for OpenApiDocument
impl UnwindSafe for OpenApiDocument
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