pub struct StringScanOptions {
pub scan: ScanOptions,
pub include_key: bool,
pub key_column_name: Option<String>,
pub value_column_name: Option<String>,
pub row_index: Option<RowIndex>,
}Expand description
Fields§
§scan: ScanOptionsBase scan options.
include_key: boolWhether to include the key column.
key_column_name: Option<String>Custom name for the key column.
value_column_name: Option<String>Custom name for the value column.
row_index: Option<RowIndex>Row index configuration.
Implementations§
Source§impl StringScanOptions
impl StringScanOptions
Sourcepub fn new(pattern: impl Into<String>) -> Self
pub fn new(pattern: impl Into<String>) -> Self
Create new StringScanOptions with the given pattern.
Sourcepub fn with_batch_size(self, size: usize) -> Self
pub fn with_batch_size(self, size: usize) -> Self
Set the batch size.
Sourcepub fn with_count_hint(self, count: usize) -> Self
pub fn with_count_hint(self, count: usize) -> Self
Set the COUNT hint for SCAN.
Sourcepub fn with_n_rows(self, n: usize) -> Self
pub fn with_n_rows(self, n: usize) -> Self
Set the maximum number of rows to return.
Sourcepub fn with_key_column_name(self, name: impl Into<String>) -> Self
pub fn with_key_column_name(self, name: impl Into<String>) -> Self
Set a custom name for the key column.
Sourcepub fn with_value_column_name(self, name: impl Into<String>) -> Self
pub fn with_value_column_name(self, name: impl Into<String>) -> Self
Set a custom name for the value column.
Sourcepub fn with_row_index(self, name: impl Into<String>, offset: u64) -> Self
pub fn with_row_index(self, name: impl Into<String>, offset: u64) -> Self
Set the row index configuration.
Trait Implementations§
Source§impl Clone for StringScanOptions
impl Clone for StringScanOptions
Source§fn clone(&self) -> StringScanOptions
fn clone(&self) -> StringScanOptions
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 StringScanOptions
impl Debug for StringScanOptions
Auto Trait Implementations§
impl Freeze for StringScanOptions
impl RefUnwindSafe for StringScanOptions
impl Send for StringScanOptions
impl Sync for StringScanOptions
impl Unpin for StringScanOptions
impl UnwindSafe for StringScanOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more