pub struct ValidationMetadata {
pub is_read_only: bool,
pub estimated_rows: Option<u64>,
pub accessed_types: Vec<String>,
pub accessed_fields: Vec<String>,
pub has_aggregation: bool,
pub code_type: Option<CodeType>,
pub action: Option<UnifiedAction>,
pub validation_time_ms: u64,
}Expand description
Detailed metadata about a validation.
Fields§
§is_read_only: boolWhether the code is read-only
estimated_rows: Option<u64>Estimated number of rows that will be returned/affected
accessed_types: Vec<String>Tables/types accessed by the code
accessed_fields: Vec<String>Fields accessed by the code
has_aggregation: boolWhether the query has aggregations
code_type: Option<CodeType>Code type detected
action: Option<UnifiedAction>Unified action determined for this operation
validation_time_ms: u64Time taken to validate (milliseconds)
Trait Implementations§
Source§impl Clone for ValidationMetadata
impl Clone for ValidationMetadata
Source§fn clone(&self) -> ValidationMetadata
fn clone(&self) -> ValidationMetadata
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 ValidationMetadata
impl Debug for ValidationMetadata
Source§impl Default for ValidationMetadata
impl Default for ValidationMetadata
Source§fn default() -> ValidationMetadata
fn default() -> ValidationMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidationMetadata
impl<'de> Deserialize<'de> for ValidationMetadata
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
Auto Trait Implementations§
impl Freeze for ValidationMetadata
impl RefUnwindSafe for ValidationMetadata
impl Send for ValidationMetadata
impl Sync for ValidationMetadata
impl Unpin for ValidationMetadata
impl UnsafeUnpin for ValidationMetadata
impl UnwindSafe for ValidationMetadata
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