pub struct ApiSchema {
pub schema_type: String,
pub url: String,
pub version: Option<String>,
}Expand description
An API schema reference.
§Examples
use oas_document::interop::ApiSchema;
let schema = ApiSchema {
schema_type: "openapi".to_string(),
url: "https://agent.acme.com/openapi.json".to_string(),
version: Some("3.1.0".to_string()),
};Fields§
§schema_type: StringSchema format: "openapi", "asyncapi", "json-schema",
"protobuf", "graphql-sdl".
url: StringURL to the schema document.
version: Option<String>Schema version.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiSchema
impl<'de> Deserialize<'de> for ApiSchema
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 ApiSchema
impl StructuralPartialEq for ApiSchema
Auto Trait Implementations§
impl Freeze for ApiSchema
impl RefUnwindSafe for ApiSchema
impl Send for ApiSchema
impl Sync for ApiSchema
impl Unpin for ApiSchema
impl UnsafeUnpin for ApiSchema
impl UnwindSafe for ApiSchema
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