Trait openapi_type::Visitor

source ·
pub trait Visitor: Sealed {
    type OptionVisitor: Visitor;
    type ArrayVisitor: Visitor;
    type ObjectVisitor: ObjectVisitor;
    type AlternativesVisitor: AlternativesVisitor;

Show 17 methods // Required methods 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::OptionVisitor; 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::ArrayVisitor; fn visit_object(&mut self) -> &mut Self::ObjectVisitor; fn visit_alternatives(&mut self) -> &mut Self::AlternativesVisitor; // Provided method fn visit_unit(&mut self) { ... }
}
Expand description

This trait can be used to visit a type. Call one of the methods on this trait exactly once.

Required Associated Types§

Required Methods§

source

fn visit_unit_struct( &mut self, name: Option<String>, description: Option<String> )

source

fn visit_any(&mut self)

source

fn visit_bool(&mut self)

source

fn visit_int(&mut self, byte: Option<u32>, minimum: Option<i64>)

source

fn visit_number(&mut self, byte: Option<u32>)

source

fn visit_char(&mut self)

source

fn visit_string(&mut self)

source

fn visit_uuid(&mut self)

source

fn visit_date(&mut self)

source

fn visit_datetime(&mut self)

source

fn visit_binary(&mut self)

source

fn visit_option(&mut self) -> &mut Self::OptionVisitor

source

fn visit_enum<I>( &mut self, name: Option<String>, description: Option<String>, variants: I )where I: IntoIterator<Item = String>,

source

fn visit_array( &mut self, len: Option<usize>, unique_items: bool ) -> &mut Self::ArrayVisitor

source

fn visit_object(&mut self) -> &mut Self::ObjectVisitor

source

fn visit_alternatives(&mut self) -> &mut Self::AlternativesVisitor

Provided Methods§

source

fn visit_unit(&mut self)

Implementors§