pub struct Scan {
pub table: TableId,
pub columns: Vec<usize>,
pub filter: Option<Expr>,
pub limit: Option<Pagination>,
}Expand description
A full-table scan operation.
Sent to drivers that set Capability::scan to true
(currently only DynamoDB). The driver scans the entire table and applies
filter to each row before returning results.
Fields§
§table: TableIdTable to scan.
columns: Vec<usize>Column indices to return (relative to the table’s column list).
filter: Option<Expr>Optional filter expression applied to each row after scanning.
limit: Option<Pagination>Limit and pagination bounds. None means return all rows.
Cursorfor keyset/cursor-based pagination (.paginate())Offsetfor hard-limit with optional skip (.limit()/.offset())
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scan
impl RefUnwindSafe for Scan
impl Send for Scan
impl Sync for Scan
impl Unpin for Scan
impl UnsafeUnpin for Scan
impl UnwindSafe for Scan
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