#[non_exhaustive]pub struct NamespaceTypeConfig {
pub memory_type: String,
pub retention_days: Option<Integer>,
pub dedup_threshold: Option<Option<f64>>,
pub hot_quota: Option<Integer>,
pub conflict_policy: Option<Option<NamespaceTypeConfigConflictPolicy>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.memory_type: String§retention_days: Option<Integer>§dedup_threshold: Option<Option<f64>>§hot_quota: Option<Integer>§conflict_policy: Option<Option<NamespaceTypeConfigConflictPolicy>>Implementations§
Source§impl NamespaceTypeConfig
impl NamespaceTypeConfig
pub fn new(memory_type: impl Into<String>) -> Self
pub fn retention_days(self, retention_days: impl Into<Integer>) -> Self
pub fn dedup_threshold(self, dedup_threshold: f64) -> Self
pub fn dedup_threshold_null(self) -> Self
pub fn hot_quota(self, hot_quota: impl Into<Integer>) -> Self
pub fn conflict_policy( self, conflict_policy: NamespaceTypeConfigConflictPolicy, ) -> Self
pub fn conflict_policy_null(self) -> Self
Trait Implementations§
Source§impl Clone for NamespaceTypeConfig
impl Clone for NamespaceTypeConfig
Source§impl Debug for NamespaceTypeConfig
impl Debug for NamespaceTypeConfig
Source§impl<'de> Deserialize<'de> for NamespaceTypeConfig
impl<'de> Deserialize<'de> for NamespaceTypeConfig
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 NamespaceTypeConfig
impl PartialEq for NamespaceTypeConfig
Source§impl Serialize for NamespaceTypeConfig
impl Serialize for NamespaceTypeConfig
impl StructuralPartialEq for NamespaceTypeConfig
Auto Trait Implementations§
impl Forget for NamespaceTypeConfig
impl Freeze for NamespaceTypeConfig
impl Move for NamespaceTypeConfig
impl RefUnwindSafe for NamespaceTypeConfig
impl Send for NamespaceTypeConfig
impl Sync for NamespaceTypeConfig
impl Unpin for NamespaceTypeConfig
impl UnsafeUnpin for NamespaceTypeConfig
impl UnwindSafe for NamespaceTypeConfig
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