Enum pliantdb_core::transaction::Command [−][src]
pub enum Command<'a> {
Insert {
contents: Cow<'a, [u8]>,
},
Update {
header: Cow<'a, Header>,
contents: Cow<'a, [u8]>,
},
Delete {
header: Cow<'a, Header>,
},
}Expand description
A command to execute within a Collection.
Variants
Inserts a new document containing contents.
Update an existing Document identified by id. revision must match
the currently stored revision on the Document. If it does not, the
command fill fail with a DocumentConflict error.
Show fields
Delete an existing Document identified by id. revision must match
the currently stored revision on the Document. If it does not, the
command fill fail with a DocumentConflict error.
Trait Implementations
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for Command<'a>impl<'a> UnwindSafe for Command<'a>Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = TShould always be Self