Struct apache_avro::schema::ResolvedSchema
source · pub struct ResolvedSchema<'s> { /* private fields */ }
Implementations§
source§impl<'s> ResolvedSchema<'s>
impl<'s> ResolvedSchema<'s>
pub fn get_schemata(&self) -> Vec<&'s Schema>
pub fn get_names(&self) -> &NamesRef<'s>
sourcepub fn new_with_known_schemata<'n>(
schemata_to_resolve: Vec<&'s Schema>,
enclosing_namespace: &Namespace,
known_schemata: &'n NamesRef<'n>
) -> AvroResult<Self>
pub fn new_with_known_schemata<'n>( schemata_to_resolve: Vec<&'s Schema>, enclosing_namespace: &Namespace, known_schemata: &'n NamesRef<'n> ) -> AvroResult<Self>
Creates ResolvedSchema
with some already known schemas.
Those schemata would be used to resolve references if needed.
Trait Implementations§
source§impl<'s> Debug for ResolvedSchema<'s>
impl<'s> Debug for ResolvedSchema<'s>
source§impl<'s> TryFrom<&'s Schema> for ResolvedSchema<'s>
impl<'s> TryFrom<&'s Schema> for ResolvedSchema<'s>
Auto Trait Implementations§
impl<'s> RefUnwindSafe for ResolvedSchema<'s>
impl<'s> Send for ResolvedSchema<'s>
impl<'s> Sync for ResolvedSchema<'s>
impl<'s> Unpin for ResolvedSchema<'s>
impl<'s> UnwindSafe for ResolvedSchema<'s>
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