pub struct LeafBuilder { /* private fields */ }Expand description
Builder for a leaf Plan with the most common fields populated.
Implementations§
Source§impl LeafBuilder
impl LeafBuilder
pub fn new(node_type: impl Into<String>) -> Self
pub fn rows(self, plan_rows: u64, actual_rows: u64) -> Self
pub fn cost(self, total_cost: f64) -> Self
pub fn time(self, actual_total_time: f64) -> Self
pub fn loops(self, actual_loops: u64) -> Self
pub fn relation( self, schema: impl Into<String>, name: impl Into<String>, ) -> Self
pub fn index(self, index_name: impl Into<String>) -> Self
pub fn build(self) -> Plan
Trait Implementations§
Source§impl Clone for LeafBuilder
impl Clone for LeafBuilder
Auto Trait Implementations§
impl Forget for LeafBuilder
impl Freeze for LeafBuilder
impl Move for LeafBuilder
impl RefUnwindSafe for LeafBuilder
impl Send for LeafBuilder
impl Sync for LeafBuilder
impl Unpin for LeafBuilder
impl UnsafeUnpin for LeafBuilder
impl UnwindSafe for LeafBuilder
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