pub enum SchemaChange {
Safe,
NeedsMigration {
reason: String,
backfill_top_level_field: Option<String>,
backfill_field_path: Option<FieldPath>,
},
Breaking {
reason: String,
},
}Expand description
Compatibility classification for a proposed schema update.
Variants§
Safe
Update is safe to apply without rewriting existing data.
NeedsMigration
Update is supported, but existing data must be rewritten/backfilled first.
Fields
Breaking
Update is not supported/safe and should be rejected by default.
Trait Implementations§
Source§impl Clone for SchemaChange
impl Clone for SchemaChange
Source§fn clone(&self) -> SchemaChange
fn clone(&self) -> SchemaChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SchemaChange
impl Debug for SchemaChange
impl Eq for SchemaChange
Source§impl PartialEq for SchemaChange
impl PartialEq for SchemaChange
Source§fn eq(&self, other: &SchemaChange) -> bool
fn eq(&self, other: &SchemaChange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaChange
Auto Trait Implementations§
impl Freeze for SchemaChange
impl RefUnwindSafe for SchemaChange
impl Send for SchemaChange
impl Sync for SchemaChange
impl Unpin for SchemaChange
impl UnsafeUnpin for SchemaChange
impl UnwindSafe for SchemaChange
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