pub enum SchemaNamedType {
Record(SchemaRecord),
Enum(SchemaEnum),
}
Variants§
Record(SchemaRecord)
Enum(SchemaEnum)
Implementations§
Source§impl SchemaNamedType
impl SchemaNamedType
pub fn fingerprint(&self) -> SchemaFingerprint
pub fn name(&self) -> &str
pub fn type_uuid(&self) -> Uuid
pub fn as_record(&self) -> Result<&SchemaRecord, DataSetErrorWithBacktrace>
pub fn try_as_record(&self) -> Option<&SchemaRecord>
pub fn as_enum(&self) -> Result<&SchemaEnum, DataSetErrorWithBacktrace>
pub fn try_as_enum(&self) -> Option<&SchemaEnum>
pub fn find_post_migration_property_path( old_root_named_type: &SchemaNamedType, old_path: impl AsRef<str>, old_named_types: &HashMap<SchemaFingerprint, SchemaNamedType, RandomState>, new_root_named_type: &SchemaNamedType, new_named_types: &HashMap<SchemaFingerprint, SchemaNamedType, RandomState>, new_named_types_by_uuid: &HashMap<Uuid, SchemaFingerprint, RandomState>, ) -> Option<String>
pub fn find_property_schema( &self, path: impl AsRef<str>, named_types: &HashMap<SchemaFingerprint, SchemaNamedType, RandomState>, ) -> Option<Schema>
Trait Implementations§
Source§impl Clone for SchemaNamedType
impl Clone for SchemaNamedType
Source§fn clone(&self) -> SchemaNamedType
fn clone(&self) -> SchemaNamedType
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 SchemaNamedType
impl RefUnwindSafe for SchemaNamedType
impl Send for SchemaNamedType
impl Sync for SchemaNamedType
impl Unpin for SchemaNamedType
impl UnwindSafe for SchemaNamedType
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