pub struct SelectOptimizations {
pub recommended_index_scans: Vec<ColumnId>,
pub recommended_covering_index: bool,
pub suggested_indexes: Vec<ColumnId>,
pub estimated_cost_reduction: f64,
}Fields§
§recommended_index_scans: Vec<ColumnId>§recommended_covering_index: bool§suggested_indexes: Vec<ColumnId>§estimated_cost_reduction: f64Implementations§
Source§impl SelectOptimizations
impl SelectOptimizations
pub fn new() -> Self
pub fn recommend_index_scan(&mut self, column_id: ColumnId)
pub fn recommend_covering_index(&mut self)
pub fn suggest_index(&mut self, column_id: ColumnId)
Trait Implementations§
Source§impl Clone for SelectOptimizations
impl Clone for SelectOptimizations
Source§fn clone(&self) -> SelectOptimizations
fn clone(&self) -> SelectOptimizations
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 moreAuto Trait Implementations§
impl Freeze for SelectOptimizations
impl RefUnwindSafe for SelectOptimizations
impl Send for SelectOptimizations
impl Sync for SelectOptimizations
impl Unpin for SelectOptimizations
impl UnsafeUnpin for SelectOptimizations
impl UnwindSafe for SelectOptimizations
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