pub struct DetectedPatterns {
pub tagged_enum_schemas: HashSet<String>,
pub untagged_enum_schemas: HashSet<String>,
pub type_mappings: BTreeMap<String, BTreeMap<String, String>>,
}Fields§
§tagged_enum_schemas: HashSet<String>Schemas that should use tagged enums (discriminated unions)
untagged_enum_schemas: HashSet<String>Schemas that should use untagged enums (simple unions)
type_mappings: BTreeMap<String, BTreeMap<String, String>>Auto-detected type mappings for discriminated unions
Trait Implementations§
Source§impl Clone for DetectedPatterns
impl Clone for DetectedPatterns
Source§fn clone(&self) -> DetectedPatterns
fn clone(&self) -> DetectedPatterns
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DetectedPatterns
impl RefUnwindSafe for DetectedPatterns
impl Send for DetectedPatterns
impl Sync for DetectedPatterns
impl Unpin for DetectedPatterns
impl UnwindSafe for DetectedPatterns
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more