pub enum SchemaOperation {
CreateEntity {
name: String,
fields: Vec<FieldSpec>,
},
AddField {
entity: String,
field: FieldSpec,
},
RemoveField {
entity: String,
field_name: String,
},
RemoveEntity {
name: String,
},
AddIndex {
entity: String,
name: String,
fields: Vec<String>,
unique: bool,
},
RemoveIndex {
entity: String,
name: String,
},
CreateSearchIndex {
entity: String,
config: ManifestSearchConfig,
},
RemoveSearchIndex {
entity: String,
},
Noop,
}Variants§
CreateEntity
AddField
RemoveField
RemoveEntity
AddIndex
RemoveIndex
CreateSearchIndex
Materialize the FTS5 + facet-bitmap shadow tables for a
searchable entity. Emitted alongside CreateEntity when the
manifest declares a search: config; idempotent so repeated
pushes against a live DB are safe.
RemoveSearchIndex
Drop an entity’s search shadow tables. Emitted when the entity
is removed from the manifest or its search: block is cleared.
Noop
Trait Implementations§
Source§impl Clone for SchemaOperation
impl Clone for SchemaOperation
Source§fn clone(&self) -> SchemaOperation
fn clone(&self) -> SchemaOperation
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 SchemaOperation
impl Debug for SchemaOperation
Source§impl<'de> Deserialize<'de> for SchemaOperation
impl<'de> Deserialize<'de> for SchemaOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SchemaOperation
impl PartialEq for SchemaOperation
Source§fn eq(&self, other: &SchemaOperation) -> bool
fn eq(&self, other: &SchemaOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemaOperation
impl Serialize for SchemaOperation
impl Eq for SchemaOperation
impl StructuralPartialEq for SchemaOperation
Auto Trait Implementations§
impl Freeze for SchemaOperation
impl RefUnwindSafe for SchemaOperation
impl Send for SchemaOperation
impl Sync for SchemaOperation
impl Unpin for SchemaOperation
impl UnsafeUnpin for SchemaOperation
impl UnwindSafe for SchemaOperation
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