pub struct ManifestEntity {
pub name: String,
pub fields: Vec<ManifestField>,
pub indexes: Vec<ManifestIndex>,
pub relations: Vec<ManifestRelation>,
pub search: Option<ManifestSearchConfig>,
pub crdt: bool,
}Fields§
§name: String§fields: Vec<ManifestField>§indexes: Vec<ManifestIndex>§relations: Vec<ManifestRelation>§search: Option<ManifestSearchConfig>Opt-in faceted search config. None = entity isn’t searchable;
Some(cfg) makes the runtime create FTS5 + facet-bitmap shadow
tables on schema push and maintain them on every write.
crdt: boolLocal-first / CRDT mode. Default true — every entity is backed
by a Loro doc, mutations merge as CRDTs, multi-device offline
edits converge cleanly. Set false to opt out per entity (audit
logs, append-only archives, anything that doesn’t need offline
merge and where you want to skip the per-write Loro overhead).
The SQLite-projected row shape is identical either way; queries
and indexes don’t change between modes.
Trait Implementations§
Source§impl Clone for ManifestEntity
impl Clone for ManifestEntity
Source§fn clone(&self) -> ManifestEntity
fn clone(&self) -> ManifestEntity
Returns a duplicate of the value. Read more
1.0.0 · 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 ManifestEntity
impl Debug for ManifestEntity
Source§impl Default for ManifestEntity
impl Default for ManifestEntity
Source§impl<'de> Deserialize<'de> for ManifestEntity
impl<'de> Deserialize<'de> for ManifestEntity
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 ManifestEntity
impl PartialEq for ManifestEntity
Source§impl Serialize for ManifestEntity
impl Serialize for ManifestEntity
impl Eq for ManifestEntity
impl StructuralPartialEq for ManifestEntity
Auto Trait Implementations§
impl Freeze for ManifestEntity
impl RefUnwindSafe for ManifestEntity
impl Send for ManifestEntity
impl Sync for ManifestEntity
impl Unpin for ManifestEntity
impl UnsafeUnpin for ManifestEntity
impl UnwindSafe for ManifestEntity
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