pub struct SSTableEntry {
pub key: Vec<u8>,
pub entry_type: u8,
pub value: Vec<u8>,
}Expand description
A single entry in an SSTable
Fields§
§key: Vec<u8>The key
entry_type: u8Entry type: 0 = value, 1 = tombstone
value: Vec<u8>The value (empty for tombstones)
Implementations§
Source§impl SSTableEntry
impl SSTableEntry
Sourcepub fn tombstone(key: Vec<u8>) -> SSTableEntry
pub fn tombstone(key: Vec<u8>) -> SSTableEntry
Create a tombstone entry
Sourcepub fn is_tombstone(&self) -> bool
pub fn is_tombstone(&self) -> bool
Check if this is a tombstone
Trait Implementations§
Source§impl Clone for SSTableEntry
impl Clone for SSTableEntry
Source§fn clone(&self) -> SSTableEntry
fn clone(&self) -> SSTableEntry
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 SSTableEntry
impl Debug for SSTableEntry
Source§impl<'de> Deserialize<'de> for SSTableEntry
impl<'de> Deserialize<'de> for SSTableEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SSTableEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SSTableEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SSTableEntry
impl Serialize for SSTableEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SSTableEntry
impl RefUnwindSafe for SSTableEntry
impl Send for SSTableEntry
impl Sync for SSTableEntry
impl Unpin for SSTableEntry
impl UnwindSafe for SSTableEntry
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