pub enum DatastoreMode {
MUST_CREATE = 0,
MUST_REPLACE = 1,
CREATE_OR_REPLACE = 2,
MUST_APPEND = 3,
CREATE_OR_APPEND = 4,
}Expand description
[‘Write mode to determine how the record is updated:’, ’ * must-create: fails if it already exists.‘, “ * must-replace: fails if it doesn’t already exist.“, ’ * create-or-replace: never fails.’, “ * must-append: must already exist, append this to what’s already there.”, ’ * create-or-append: append if anything is there, otherwise create.’]
Variants§
Trait Implementations§
Source§impl Clone for DatastoreMode
impl Clone for DatastoreMode
Source§fn clone(&self) -> DatastoreMode
fn clone(&self) -> DatastoreMode
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 moreSource§impl Debug for DatastoreMode
impl Debug for DatastoreMode
Source§impl<'de> Deserialize<'de> for DatastoreMode
impl<'de> Deserialize<'de> for DatastoreMode
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 DatastoreMode
impl PartialEq for DatastoreMode
Source§impl Serialize for DatastoreMode
impl Serialize for DatastoreMode
Source§impl ToString for DatastoreMode
impl ToString for DatastoreMode
Source§impl TryFrom<i32> for DatastoreMode
impl TryFrom<i32> for DatastoreMode
impl Copy for DatastoreMode
impl Eq for DatastoreMode
impl StructuralPartialEq for DatastoreMode
Auto Trait Implementations§
impl Freeze for DatastoreMode
impl RefUnwindSafe for DatastoreMode
impl Send for DatastoreMode
impl Sync for DatastoreMode
impl Unpin for DatastoreMode
impl UnwindSafe for DatastoreMode
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