pub struct PersistReactiveCollectionOptions {
pub graph: Option<Graph>,
pub name: Option<String>,
pub storage_prefix: Option<String>,
pub snapshot_key: Option<String>,
pub snapshot_store: Rc<dyn KvStorageTier<ReactiveCollectionSnapshotFrame>>,
pub change_log: Option<Rc<dyn AppendLogStorageTier<ReactiveCollectionChangeFrame>>>,
pub snapshot_on_attach: bool,
pub snapshot_every_changes: Option<usize>,
}Expand description
PersistReactiveCollectionOptions data container.
Fields§
§graph: Option<Graph>graph field for graph.
name: Option<String>name field for name.
storage_prefix: Option<String>storage_prefix field for storage prefix.
snapshot_key: Option<String>snapshot_key field for snapshot key.
snapshot_store: Rc<dyn KvStorageTier<ReactiveCollectionSnapshotFrame>>snapshot_store field for snapshot store.
change_log: Option<Rc<dyn AppendLogStorageTier<ReactiveCollectionChangeFrame>>>change_log field for change log.
snapshot_on_attach: boolsnapshot_on_attach field for snapshot on attach.
snapshot_every_changes: Option<usize>snapshot_every_changes field for snapshot every changes.
Implementations§
Source§impl PersistReactiveCollectionOptions
impl PersistReactiveCollectionOptions
Sourcepub fn new(
snapshot_store: Rc<dyn KvStorageTier<ReactiveCollectionSnapshotFrame>>,
storage_prefix: impl Into<String>,
) -> Self
pub fn new( snapshot_store: Rc<dyn KvStorageTier<ReactiveCollectionSnapshotFrame>>, storage_prefix: impl Into<String>, ) -> Self
Creates or computes new.
Trait Implementations§
Source§impl Clone for PersistReactiveCollectionOptions
impl Clone for PersistReactiveCollectionOptions
Source§fn clone(&self) -> PersistReactiveCollectionOptions
fn clone(&self) -> PersistReactiveCollectionOptions
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 moreAuto Trait Implementations§
impl Freeze for PersistReactiveCollectionOptions
impl !RefUnwindSafe for PersistReactiveCollectionOptions
impl !Send for PersistReactiveCollectionOptions
impl !Sync for PersistReactiveCollectionOptions
impl Unpin for PersistReactiveCollectionOptions
impl UnsafeUnpin for PersistReactiveCollectionOptions
impl !UnwindSafe for PersistReactiveCollectionOptions
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