Struct hydrate_model::SchemaRecord
source · pub struct SchemaRecord { /* private fields */ }
Implementations§
source§impl SchemaRecord
impl SchemaRecord
pub fn new( name: String, type_uuid: Uuid, fingerprint: SchemaFingerprint, aliases: Box<[String]>, fields: Vec<SchemaRecordField>, markup: SchemaDefRecordMarkup ) -> SchemaRecord
pub fn name(&self) -> &str
pub fn type_uuid(&self) -> Uuid
pub fn fingerprint(&self) -> SchemaFingerprint
pub fn aliases(&self) -> &[String]
pub fn fields(&self) -> &[SchemaRecordField]
pub fn field_schema(&self, field_name: impl AsRef<str>) -> Option<&Schema>
pub fn find_property_schema( &self, path: impl AsRef<str>, named_types: &HashMap<SchemaFingerprint, SchemaNamedType, RandomState> ) -> Option<Schema>
pub fn find_field_from_name( &self, field_name: &str ) -> Option<&SchemaRecordField>
pub fn find_field_from_field_uuid( &self, field_uuid: Uuid ) -> Option<&SchemaRecordField>
pub fn markup(&self) -> &SchemaDefRecordMarkup
Trait Implementations§
source§impl Clone for SchemaRecord
impl Clone for SchemaRecord
source§fn clone(&self) -> SchemaRecord
fn clone(&self) -> SchemaRecord
Returns a copy 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 moresource§impl Debug for SchemaRecord
impl Debug for SchemaRecord
source§impl Deref for SchemaRecord
impl Deref for SchemaRecord
§type Target = SchemaRecordInner
type Target = SchemaRecordInner
The resulting type after dereferencing.
Auto Trait Implementations§
impl RefUnwindSafe for SchemaRecord
impl Send for SchemaRecord
impl Sync for SchemaRecord
impl Unpin for SchemaRecord
impl UnwindSafe for SchemaRecord
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