pub trait ObjectVisitor: Sealed {
    type FieldVisitor: Visitor;
    type FlattenVisitor: Visitor;
    type ValueVisitor: Visitor;

    // Required methods
    fn visit_name(&mut self, name: String);
    fn visit_description(&mut self, description: String);
    fn visit_field(
        &mut self,
        name: String,
        doc: Option<String>
    ) -> &mut Self::FieldVisitor;
    fn visit_flatten_field(&mut self) -> &mut Self::FlattenVisitor;
    fn visit_deny_additional(&mut self);
    fn visit_additional(&mut self) -> &mut Self::ValueVisitor;
}

Required Associated Types§

Required Methods§

source

fn visit_name(&mut self, name: String)

source

fn visit_description(&mut self, description: String)

source

fn visit_field( &mut self, name: String, doc: Option<String> ) -> &mut Self::FieldVisitor

source

fn visit_flatten_field(&mut self) -> &mut Self::FlattenVisitor

source

fn visit_deny_additional(&mut self)

source

fn visit_additional(&mut self) -> &mut Self::ValueVisitor

Implementors§