pub struct OpenApiWrapper<'a> { /* private fields */ }
Expand description
Wrapper around the openapi spec. This wrapper is used to serialize the openapi spec.
Methods from Deref<Target = OpenApi>§
Sourcepub fn to_json(&self) -> Result<String, Error>
pub fn to_json(&self) -> Result<String, Error>
Converts this OpenApi
to JSON String. This method essentially calls serde_json::to_string
method.
Sourcepub fn to_pretty_json(&self) -> Result<String, Error>
pub fn to_pretty_json(&self) -> Result<String, Error>
Converts this OpenApi
to pretty JSON String. This method essentially calls serde_json::to_string_pretty
method.
Trait Implementations§
Source§impl Deref for OpenApiWrapper<'_>
impl Deref for OpenApiWrapper<'_>
Auto Trait Implementations§
impl<'a> Freeze for OpenApiWrapper<'a>
impl<'a> RefUnwindSafe for OpenApiWrapper<'a>
impl<'a> !Send for OpenApiWrapper<'a>
impl<'a> Sync for OpenApiWrapper<'a>
impl<'a> Unpin for OpenApiWrapper<'a>
impl<'a> UnwindSafe for OpenApiWrapper<'a>
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