Enum kvdb::DBOp [−][src]
pub enum DBOp {
Insert {
col: Option<u32>,
key: ElasticArray32<u8>,
value: DBValue,
},
Delete {
col: Option<u32>,
key: ElasticArray32<u8>,
},
}Database operation.
Variants
InsertFields of Insert
col: Option<u32> | |
key: ElasticArray32<u8> | |
value: DBValue |
DeleteFields of Delete
col: Option<u32> | |
key: ElasticArray32<u8> |
Methods
impl DBOp[src]
impl DBOppub fn key(&self) -> &[u8][src]
pub fn key(&self) -> &[u8]Returns the key associated with this operation.
pub fn col(&self) -> Option<u32>[src]
pub fn col(&self) -> Option<u32>Returns the column associated with this operation.
Trait Implementations
impl Clone for DBOp[src]
impl Clone for DBOpfn clone(&self) -> DBOp[src]
fn clone(&self) -> DBOpReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for DBOp[src]
impl PartialEq for DBOp