pub struct StorePolicy {
pub backend: BackendKind,
}Expand description
A declarative storage policy.
Flat and minimal today (one knob); grows new fields — a Postgres URL
reference, a coordination doorbell mode — as those features land. The
#[serde(default)] makes every field optional, so a bare [store] section
(or none at all) resolves to the safe, daemonless SQLite default.
Fields§
§backend: BackendKindWhich backend to open.
Trait Implementations§
Source§impl Clone for StorePolicy
impl Clone for StorePolicy
Source§fn clone(&self) -> StorePolicy
fn clone(&self) -> StorePolicy
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 StorePolicy
impl Debug for StorePolicy
Source§impl Default for StorePolicy
impl Default for StorePolicy
Source§fn default() -> StorePolicy
fn default() -> StorePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorePolicywhere
StorePolicy: Default,
impl<'de> Deserialize<'de> for StorePolicywhere
StorePolicy: Default,
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
impl Eq for StorePolicy
Source§impl PartialEq for StorePolicy
impl PartialEq for StorePolicy
Source§fn eq(&self, other: &StorePolicy) -> bool
fn eq(&self, other: &StorePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StorePolicy
impl Serialize for StorePolicy
impl StructuralPartialEq for StorePolicy
Auto Trait Implementations§
impl Freeze for StorePolicy
impl RefUnwindSafe for StorePolicy
impl Send for StorePolicy
impl Sync for StorePolicy
impl Unpin for StorePolicy
impl UnsafeUnpin for StorePolicy
impl UnwindSafe for StorePolicy
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