pub struct Model {
pub sem_version: u32,
pub version: SpecVersion,
pub title: Option<String>,
pub schemas: Vec<TypeDecl>,
pub operations: Vec<Operation>,
pub webhooks: Vec<Operation>,
pub channels: Vec<Channel>,
pub servers: Vec<Server>,
pub security_schemes: Vec<String>,
pub warnings: Vec<Warning>,
pub names: Vec<NameRequest>,
}Fields§
§sem_version: u32Version of this JSON form (SEM_VERSION).
version: SpecVersion§title: Option<String>§schemas: Vec<TypeDecl>Named types, in the order of components, followed by the hoisted types.
operations: Vec<Operation>§webhooks: Vec<Operation>§channels: Vec<Channel>The channels of x-event-channels, in document order.
servers: Vec<Server>§security_schemes: Vec<String>The names in components.securitySchemes, in order.
warnings: Vec<Warning>§names: Vec<NameRequest>Name requests, in the order backends must claim them (design.md 18.4.6).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Model, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Model, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Model
impl Serialize for Model
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Forget for Model
impl Freeze for Model
impl Move for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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