pub struct ExplainPlan {
pub nodes: Vec<ExplainNode>,
pub total_cost: Cost,
pub statistics: Option<ExecutionStatistics>,
}Expand description
Query explain output.
Fields§
§nodes: Vec<ExplainNode>Query plan nodes.
total_cost: CostTotal estimated cost.
statistics: Option<ExecutionStatistics>Execution statistics (if available).
Implementations§
Source§impl ExplainPlan
impl ExplainPlan
Sourcepub fn from_optimized(query: &OptimizedQuery) -> Self
pub fn from_optimized(query: &OptimizedQuery) -> Self
Create explain plan from optimized query.
Sourcepub fn format_text(&self) -> String
pub fn format_text(&self) -> String
Format as text.
Sourcepub fn format_json(&self) -> Result<String, Error>
pub fn format_json(&self) -> Result<String, Error>
Format as JSON.
Trait Implementations§
Source§impl Clone for ExplainPlan
impl Clone for ExplainPlan
Source§fn clone(&self) -> ExplainPlan
fn clone(&self) -> ExplainPlan
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 ExplainPlan
impl Debug for ExplainPlan
Source§impl<'de> Deserialize<'de> for ExplainPlan
impl<'de> Deserialize<'de> for ExplainPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExplainPlan
impl Display for ExplainPlan
Auto Trait Implementations§
impl Freeze for ExplainPlan
impl RefUnwindSafe for ExplainPlan
impl Send for ExplainPlan
impl Sync for ExplainPlan
impl Unpin for ExplainPlan
impl UnsafeUnpin for ExplainPlan
impl UnwindSafe for ExplainPlan
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