pub struct ServerlessSecondaryIndex {
pub generation: u64,
pub entries: Vec<ServerlessSecondaryIndexEntry>,
}Fields§
§generation: u64§entries: Vec<ServerlessSecondaryIndexEntry>Implementations§
Source§impl ServerlessSecondaryIndex
impl ServerlessSecondaryIndex
pub fn new(generation: u64) -> Self
pub fn from_extent_index(index: &ServerlessExtentIndex) -> Self
pub fn push(&mut self, entry: ServerlessSecondaryIndexEntry)
pub fn entries_for_collection( &self, collection: &str, ) -> Vec<&ServerlessSecondaryIndexEntry>
pub fn hydration_plan_for_collection( &self, collection: &str, ) -> ServerlessHydrationPlan
pub fn write_to_path(&self, path: impl AsRef<Path>) -> RdbFileResult<()>
pub fn read_from_path(path: impl AsRef<Path>) -> RdbFileResult<Self>
pub fn encode(&self) -> Vec<u8> ⓘ
pub fn decode(bytes: &[u8]) -> RdbFileResult<Self>
Trait Implementations§
Source§impl Clone for ServerlessSecondaryIndex
impl Clone for ServerlessSecondaryIndex
Source§fn clone(&self) -> ServerlessSecondaryIndex
fn clone(&self) -> ServerlessSecondaryIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServerlessSecondaryIndex
impl Debug for ServerlessSecondaryIndex
impl Eq for ServerlessSecondaryIndex
Source§impl PartialEq for ServerlessSecondaryIndex
impl PartialEq for ServerlessSecondaryIndex
Source§fn eq(&self, other: &ServerlessSecondaryIndex) -> bool
fn eq(&self, other: &ServerlessSecondaryIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerlessSecondaryIndex
Auto Trait Implementations§
impl Freeze for ServerlessSecondaryIndex
impl RefUnwindSafe for ServerlessSecondaryIndex
impl Send for ServerlessSecondaryIndex
impl Sync for ServerlessSecondaryIndex
impl Unpin for ServerlessSecondaryIndex
impl UnsafeUnpin for ServerlessSecondaryIndex
impl UnwindSafe for ServerlessSecondaryIndex
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