pub trait ObjectType {
// Required methods
fn field_names(
mode: SchemaMode,
seen: &mut HashSet<&'static str>,
) -> Vec<String>;
fn captures_extra(seen: &mut HashSet<&'static str>) -> bool;
// Provided method
fn reserved_names(&self, mode: SchemaMode) -> Vec<String> { ... }
}Expand description
Object shape information used by flattened fields, independent of ownership.
Required Methods§
fn field_names( mode: SchemaMode, seen: &mut HashSet<&'static str>, ) -> Vec<String>
fn captures_extra(seen: &mut HashSet<&'static str>) -> bool
Provided Methods§
fn reserved_names(&self, mode: SchemaMode) -> Vec<String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".