pub struct ExplainResponse {
pub query: String,
pub sql: Option<String>,
pub complexity: ComplexityInfo,
pub warnings: Vec<String>,
pub estimated_cost: usize,
pub views_accessed: Vec<String>,
pub query_type: String,
pub database_plan: Option<Value>,
}Expand description
Response from explain endpoint.
Fields§
§query: StringOriginal query that was analyzed
sql: Option<String>Generated SQL equivalent (if available)
complexity: ComplexityInfoComplexity metrics for the query
warnings: Vec<String>Warning messages for potential issues
estimated_cost: usizeEstimated cost to execute the query
views_accessed: Vec<String>Views/tables that would be accessed
query_type: StringQuery type classification
database_plan: Option<Value>Database-level EXPLAIN output (only when debug.database_explain is enabled)
Trait Implementations§
Source§impl Debug for ExplainResponse
impl Debug for ExplainResponse
Auto Trait Implementations§
impl Freeze for ExplainResponse
impl RefUnwindSafe for ExplainResponse
impl Send for ExplainResponse
impl Sync for ExplainResponse
impl Unpin for ExplainResponse
impl UnsafeUnpin for ExplainResponse
impl UnwindSafe for ExplainResponse
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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