pub struct SchemaDiff {
pub strip_fields: Vec<String>,
pub inject_defaults: Vec<(String, Value)>,
pub build_indexes: Vec<(String, IndexConfig)>,
pub drop_indexes: Vec<String>,
}Expand description
Result of comparing current schema against a stored fingerprint.
Fields§
§strip_fields: Vec<String>Fields removed from schema → strip from stored records
inject_defaults: Vec<(String, Value)>New fields with @default → inject default value into existing records
build_indexes: Vec<(String, IndexConfig)>Fields that gained @indexed → build secondary index entries
drop_indexes: Vec<String>Fields that lost @indexed → delete index entries
Implementations§
Trait Implementations§
Source§impl Clone for SchemaDiff
impl Clone for SchemaDiff
Source§fn clone(&self) -> SchemaDiff
fn clone(&self) -> SchemaDiff
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 SchemaDiff
impl Debug for SchemaDiff
Source§impl Default for SchemaDiff
impl Default for SchemaDiff
Source§fn default() -> SchemaDiff
fn default() -> SchemaDiff
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaDiff
impl RefUnwindSafe for SchemaDiff
impl Send for SchemaDiff
impl Sync for SchemaDiff
impl Unpin for SchemaDiff
impl UnsafeUnpin for SchemaDiff
impl UnwindSafe for SchemaDiff
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