pub struct Configuration {
pub cas_required: Option<bool>,
pub delete_version_after: Option<String>,
pub max_versions: Option<u32>,
}Expand description
Configuration describes the configuration for a single kv2-mount
Fields§
§cas_required: Option<bool>Whether or not all keys are required to have the ‘cas’ option set when updating/writing to them
delete_version_after: Option<String>If set, this specifies the duration for which a version is held, older versions than described will be dropped
max_versions: Option<u32>The Number of Versions that should be kept at any given time if this number is exceeded, the oldest versions are dropped
Trait Implementations§
Source§impl Debug for Configuration
impl Debug for Configuration
Source§impl<'de> Deserialize<'de> for Configuration
impl<'de> Deserialize<'de> for Configuration
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 Configuration
impl PartialEq for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnsafeUnpin for Configuration
impl UnwindSafe for Configuration
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