pub struct DatabaseProperties {Show 15 fields
pub vgroups: Option<u64>,
pub replica: Option<u16>,
pub quorum: Option<u16>,
pub days: Option<u16>,
pub keep: Option<String>,
pub cache: Option<u32>,
pub blocks: Option<u32>,
pub minrows: Option<u32>,
pub maxrows: Option<u32>,
pub wal: Option<u8>,
pub fsync: Option<u32>,
pub comp: Option<u8>,
pub cachelast: Option<u8>,
pub precision: Option<Precision>,
pub update: Option<u8>,
}
Fields§
§vgroups: Option<u64>
§replica: Option<u16>
§quorum: Option<u16>
§days: Option<u16>
§keep: Option<String>
§cache: Option<u32>
§blocks: Option<u32>
§minrows: Option<u32>
§maxrows: Option<u32>
§wal: Option<u8>
§fsync: Option<u32>
§comp: Option<u8>
§cachelast: Option<u8>
§precision: Option<Precision>
§update: Option<u8>
Implementations§
Source§impl DatabaseProperties
impl DatabaseProperties
pub fn new() -> Self
pub fn vgroups(self, vgroups: u64) -> Self
pub fn cache(self, cache: u32) -> Self
pub fn blocks(self, blocks: u32) -> Self
pub fn minrows(self, minrows: u32) -> Self
pub fn maxrows(self, maxrows: u32) -> Self
pub fn fsync(self, fsync: u32) -> Self
pub fn replica(self, replica: u16) -> Self
pub fn quorum(self, quorum: u16) -> Self
pub fn days(self, days: u16) -> Self
pub fn wal(self, wal: u8) -> Self
pub fn comp(self, comp: u8) -> Self
pub fn cachelast(self, cachelast: u8) -> Self
pub fn update(self, update: u8) -> Self
pub fn precision(self, precision: Precision) -> Self
pub fn keep(self, keep: String) -> Self
Trait Implementations§
Source§impl Debug for DatabaseProperties
impl Debug for DatabaseProperties
Source§impl Default for DatabaseProperties
impl Default for DatabaseProperties
Source§fn default() -> DatabaseProperties
fn default() -> DatabaseProperties
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatabaseProperties
impl<'de> Deserialize<'de> for DatabaseProperties
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 Display for DatabaseProperties
impl Display for DatabaseProperties
Source§impl FromStr for DatabaseProperties
impl FromStr for DatabaseProperties
Source§impl PartialEq for DatabaseProperties
impl PartialEq for DatabaseProperties
Source§impl Serialize for DatabaseProperties
impl Serialize for DatabaseProperties
impl Eq for DatabaseProperties
impl StructuralPartialEq for DatabaseProperties
Auto Trait Implementations§
impl Freeze for DatabaseProperties
impl RefUnwindSafe for DatabaseProperties
impl Send for DatabaseProperties
impl Sync for DatabaseProperties
impl Unpin for DatabaseProperties
impl UnwindSafe for DatabaseProperties
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more