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
Insert
Fields of Insert
col: Option<u32> | |
key: ElasticArray32<u8> | |
value: DBValue |
Delete
Fields of Delete
col: Option<u32> | |
key: ElasticArray32<u8> |
Methods
impl DBOp
[src]
impl DBOp
pub 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 DBOp
fn clone(&self) -> DBOp
[src]
fn clone(&self) -> DBOp
Returns 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