pub enum SchemaReference {
Schema {
schema: String,
},
Property {
schema: String,
property: String,
},
}
Expand description
A structured enum of an OpenAPI reference. e.g. #/components/schemas/Account or #/components/schemas/Account/properties/name
Variants§
Implementations§
Source§impl SchemaReference
impl SchemaReference
pub fn from_str(reference: &str) -> SchemaReference
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SchemaReference
impl RefUnwindSafe for SchemaReference
impl Send for SchemaReference
impl Sync for SchemaReference
impl Unpin for SchemaReference
impl UnwindSafe for SchemaReference
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