Enum openapi_type::OpenapiVisitor
source · [−]pub enum OpenapiVisitor {
Show 17 variants
Empty,
Unit {
name: Option<String>,
description: Option<String>,
},
Any,
Bool,
Int {
byte: Option<u32>,
minimum: Option<i64>,
},
Number {
byte: Option<u32>,
},
Char,
String,
Uuid,
Date,
DateTime,
Binary,
Option(Box<OpenapiVisitor>),
Enum {
name: Option<String>,
description: Option<String>,
variants: Vec<Option<String>>,
},
Array {
items: Box<OpenapiVisitor>,
len: Option<usize>,
unique_items: bool,
},
Object(Object),
Alternatives(Alternatives),
}
Variants
Empty
Unit
Any
Bool
Int
Number
Char
String
Uuid
Date
DateTime
Binary
Option(Box<OpenapiVisitor>)
Enum
Array
Object(Object)
Alternatives(Alternatives)
Implementations
sourceimpl OpenapiVisitor
impl OpenapiVisitor
pub const fn new() -> Self
pub fn into_schema(self) -> Option<OpenapiSchema>
Trait Implementations
sourceimpl Debug for OpenapiVisitor
impl Debug for OpenapiVisitor
sourceimpl Visitor for OpenapiVisitor
impl Visitor for OpenapiVisitor
type OptionVisitor = Self
type ArrayVisitor = Self
type ObjectVisitor = Object
type AlternativesVisitor = Alternatives
fn visit_unit_struct(
&mut self,
name: Option<String>,
description: Option<String>
)
fn visit_any(&mut self)
fn visit_bool(&mut self)
fn visit_int(&mut self, byte: Option<u32>, minimum: Option<i64>)
fn visit_number(&mut self, byte: Option<u32>)
fn visit_char(&mut self)
fn visit_string(&mut self)
fn visit_uuid(&mut self)
fn visit_date(&mut self)
fn visit_datetime(&mut self)
fn visit_binary(&mut self)
fn visit_option(&mut self) -> &mut Self
fn visit_enum<I>(
&mut self,
name: Option<String>,
description: Option<String>,
variants: I
) where
I: IntoIterator<Item = String>,
fn visit_array(&mut self, len: Option<usize>, unique_items: bool) -> &mut Self
fn visit_object(&mut self) -> &mut Object
fn visit_alternatives(&mut self) -> &mut Alternatives
fn visit_unit(&mut self)
Auto Trait Implementations
impl RefUnwindSafe for OpenapiVisitor
impl Send for OpenapiVisitor
impl Sync for OpenapiVisitor
impl Unpin for OpenapiVisitor
impl UnwindSafe for OpenapiVisitor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more