#[non_exhaustive]pub struct Metadata {
pub sql_statement_execution_time: Option<Duration>,
/* private fields */
}Expand description
The additional metadata information regarding the execution of the SQL statements.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sql_statement_execution_time: Option<Duration>The time taken to execute the SQL statements.
Implementations§
Source§impl Metadata
impl Metadata
pub fn new() -> Self
Sourcepub fn set_sql_statement_execution_time<T>(self, v: T) -> Self
pub fn set_sql_statement_execution_time<T>(self, v: T) -> Self
Sets the value of sql_statement_execution_time.
§Example
ⓘ
use wkt::Duration;
let x = Metadata::new().set_sql_statement_execution_time(Duration::default()/* use setters */);Sourcepub fn set_or_clear_sql_statement_execution_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_sql_statement_execution_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of sql_statement_execution_time.
§Example
ⓘ
use wkt::Duration;
let x = Metadata::new().set_or_clear_sql_statement_execution_time(Some(Duration::default()/* use setters */));
let x = Metadata::new().set_or_clear_sql_statement_execution_time(None::<Duration>);Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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