pub struct RangeOption<'a> {
    pub begin: KeySelector<'a>,
    pub end: KeySelector<'a>,
    pub limit: Option<usize>,
    pub target_bytes: usize,
    pub mode: StreamingMode,
    pub reverse: bool,
    /* private fields */
}Expand description
RangeOption represents a query parameters for range scan query.
You can construct RangeOption easily:
use foundationdb::RangeOption;
let opt = RangeOption::from((b"begin".as_ref(), b"end".as_ref()));
let opt: RangeOption = (b"begin".as_ref()..b"end".as_ref()).into();
let opt = RangeOption {
    limit: Some(10),
    ..RangeOption::from((b"begin".as_ref(), b"end".as_ref()))
};Fields§
§begin: KeySelector<'a>The beginning of the range.
end: KeySelector<'a>The end of the range.
limit: Option<usize>If non-zero, indicates the maximum number of key-value pairs to return.
target_bytes: usizeIf non-zero, indicates a (soft) cap on the combined number of bytes of keys and values to return for each item.
mode: StreamingModeOne of the options::StreamingMode values indicating how the caller would like the data in the range returned.
reverse: boolIf true, key-value pairs will be returned in reverse lexicographical order beginning at the end of the range.
Implementations§
Source§impl RangeOption<'_>
 
impl RangeOption<'_>
Trait Implementations§
Source§impl<'a> Clone for RangeOption<'a>
 
impl<'a> Clone for RangeOption<'a>
Source§fn clone(&self) -> RangeOption<'a>
 
fn clone(&self) -> RangeOption<'a>
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<'a> Debug for RangeOption<'a>
 
impl<'a> Debug for RangeOption<'a>
Source§impl Default for RangeOption<'_>
 
impl Default for RangeOption<'_>
Source§impl From<&Subspace> for RangeOption<'static>
 
impl From<&Subspace> for RangeOption<'static>
Source§impl<'a> From<(KeySelector<'a>, KeySelector<'a>)> for RangeOption<'a>
 
impl<'a> From<(KeySelector<'a>, KeySelector<'a>)> for RangeOption<'a>
Source§fn from((begin, end): (KeySelector<'a>, KeySelector<'a>)) -> Self
 
fn from((begin, end): (KeySelector<'a>, KeySelector<'a>)) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Range<KeySelector<'a>>> for RangeOption<'a>
 
impl<'a> From<Range<KeySelector<'a>>> for RangeOption<'a>
Source§fn from(range: Range<KeySelector<'a>>) -> Self
 
fn from(range: Range<KeySelector<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<RangeInclusive<&'a [u8]>> for RangeOption<'a>
 
impl<'a> From<RangeInclusive<&'a [u8]>> for RangeOption<'a>
Source§fn from(range: RangeInclusive<&'a [u8]>) -> Self
 
fn from(range: RangeInclusive<&'a [u8]>) -> Self
Converts to this type from the input type.
Source§impl From<RangeInclusive<Vec<u8>>> for RangeOption<'static>
 
impl From<RangeInclusive<Vec<u8>>> for RangeOption<'static>
Auto Trait Implementations§
impl<'a> Freeze for RangeOption<'a>
impl<'a> RefUnwindSafe for RangeOption<'a>
impl<'a> Send for RangeOption<'a>
impl<'a> Sync for RangeOption<'a>
impl<'a> Unpin for RangeOption<'a>
impl<'a> UnwindSafe for RangeOption<'a>
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