Trait vector_config_common::schema::visit::Visitor
source · pub trait Visitor: Debug {
// Provided methods
fn visit_root_schema(&mut self, root: &mut RootSchema) { ... }
fn visit_schema(
&mut self,
definitions: &mut Map<String, Schema>,
schema: &mut Schema,
) { ... }
fn visit_schema_object(
&mut self,
definitions: &mut Map<String, Schema>,
schema: &mut SchemaObject,
) { ... }
}
Expand description
Trait used to recursively modify a constructed schema and its subschemas.
Provided Methods§
sourcefn visit_root_schema(&mut self, root: &mut RootSchema)
fn visit_root_schema(&mut self, root: &mut RootSchema)
Override this method to modify a RootSchema
and (optionally) its subschemas.
When overriding this method, you will usually want to call the visit_root_schema
function to visit subschemas.
sourcefn visit_schema(
&mut self,
definitions: &mut Map<String, Schema>,
schema: &mut Schema,
)
fn visit_schema( &mut self, definitions: &mut Map<String, Schema>, schema: &mut Schema, )
Override this method to modify a Schema
and (optionally) its subschemas.
When overriding this method, you will usually want to call the visit_schema
function to visit subschemas.
sourcefn visit_schema_object(
&mut self,
definitions: &mut Map<String, Schema>,
schema: &mut SchemaObject,
)
fn visit_schema_object( &mut self, definitions: &mut Map<String, Schema>, schema: &mut SchemaObject, )
Override this method to modify a SchemaObject
and (optionally) its subschemas.
When overriding this method, you will usually want to call the visit_schema_object
function to visit subschemas.