pub struct SchemaCompatibility;Expand description
Check if two schemas can be resolved.
See the module documentation for more details.
Implementations§
Source§impl SchemaCompatibility
impl SchemaCompatibility
Sourcepub fn can_read(
writers_schema: &Schema,
readers_schema: &Schema,
) -> Result<Compatibility, CompatibilityError>
pub fn can_read( writers_schema: &Schema, readers_schema: &Schema, ) -> Result<Compatibility, CompatibilityError>
Recursively check if the reader’s schema can be resolved to the writer’s schema
Sourcepub fn mutual_read(
schema_a: &Schema,
schema_b: &Schema,
) -> Result<Compatibility, CompatibilityError>
pub fn mutual_read( schema_a: &Schema, schema_b: &Schema, ) -> Result<Compatibility, CompatibilityError>
Recursively check if both schemas can be resolved to each other
Auto Trait Implementations§
impl Freeze for SchemaCompatibility
impl RefUnwindSafe for SchemaCompatibility
impl Send for SchemaCompatibility
impl Sync for SchemaCompatibility
impl Unpin for SchemaCompatibility
impl UnwindSafe for SchemaCompatibility
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