#[non_exhaustive]pub struct DmlStats {
pub inserted_row_count: Option<Int64Value>,
pub deleted_row_count: Option<Int64Value>,
pub updated_row_count: Option<Int64Value>,
pub dml_mode: DmlMode,
pub fine_grained_dml_unused_reason: FineGrainedDmlUnusedReason,
/* private fields */
}Expand description
Detailed statistics for DML 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.inserted_row_count: Option<Int64Value>Output only. Number of inserted Rows. Populated by DML INSERT and MERGE statements
deleted_row_count: Option<Int64Value>Output only. Number of deleted Rows. populated by DML DELETE, MERGE and TRUNCATE statements.
updated_row_count: Option<Int64Value>Output only. Number of updated Rows. Populated by DML UPDATE and MERGE statements.
dml_mode: DmlModeOutput only. DML mode used.
fine_grained_dml_unused_reason: FineGrainedDmlUnusedReasonOutput only. Reason for disabling fine-grained DML if applicable.
Implementations§
Source§impl DmlStats
impl DmlStats
Sourcepub fn set_inserted_row_count<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
pub fn set_inserted_row_count<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
Sets the value of inserted_row_count.
§Example
ⓘ
use wkt::Int64Value;
let x = DmlStats::new().set_inserted_row_count(Int64Value::default()/* use setters */);Sourcepub fn set_or_clear_inserted_row_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
pub fn set_or_clear_inserted_row_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
Sets or clears the value of inserted_row_count.
§Example
ⓘ
use wkt::Int64Value;
let x = DmlStats::new().set_or_clear_inserted_row_count(Some(Int64Value::default()/* use setters */));
let x = DmlStats::new().set_or_clear_inserted_row_count(None::<Int64Value>);Sourcepub fn set_deleted_row_count<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
pub fn set_deleted_row_count<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
Sets the value of deleted_row_count.
§Example
ⓘ
use wkt::Int64Value;
let x = DmlStats::new().set_deleted_row_count(Int64Value::default()/* use setters */);Sourcepub fn set_or_clear_deleted_row_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
pub fn set_or_clear_deleted_row_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
Sets or clears the value of deleted_row_count.
§Example
ⓘ
use wkt::Int64Value;
let x = DmlStats::new().set_or_clear_deleted_row_count(Some(Int64Value::default()/* use setters */));
let x = DmlStats::new().set_or_clear_deleted_row_count(None::<Int64Value>);Sourcepub fn set_updated_row_count<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
pub fn set_updated_row_count<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
Sets the value of updated_row_count.
§Example
ⓘ
use wkt::Int64Value;
let x = DmlStats::new().set_updated_row_count(Int64Value::default()/* use setters */);Sourcepub fn set_or_clear_updated_row_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
pub fn set_or_clear_updated_row_count<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
Sets or clears the value of updated_row_count.
§Example
ⓘ
use wkt::Int64Value;
let x = DmlStats::new().set_or_clear_updated_row_count(Some(Int64Value::default()/* use setters */));
let x = DmlStats::new().set_or_clear_updated_row_count(None::<Int64Value>);Sourcepub fn set_dml_mode<T: Into<DmlMode>>(self, v: T) -> Self
pub fn set_dml_mode<T: Into<DmlMode>>(self, v: T) -> Self
Sourcepub fn set_fine_grained_dml_unused_reason<T: Into<FineGrainedDmlUnusedReason>>(
self,
v: T,
) -> Self
pub fn set_fine_grained_dml_unused_reason<T: Into<FineGrainedDmlUnusedReason>>( self, v: T, ) -> Self
Sets the value of fine_grained_dml_unused_reason.
§Example
ⓘ
use google_cloud_bigquery_v2::model::dml_stats::FineGrainedDmlUnusedReason;
let x0 = DmlStats::new().set_fine_grained_dml_unused_reason(FineGrainedDmlUnusedReason::MaxPartitionSizeExceeded);
let x1 = DmlStats::new().set_fine_grained_dml_unused_reason(FineGrainedDmlUnusedReason::TableNotEnrolled);
let x2 = DmlStats::new().set_fine_grained_dml_unused_reason(FineGrainedDmlUnusedReason::DmlInMultiStatementTransaction);Trait Implementations§
impl StructuralPartialEq for DmlStats
Auto Trait Implementations§
impl Freeze for DmlStats
impl RefUnwindSafe for DmlStats
impl Send for DmlStats
impl Sync for DmlStats
impl Unpin for DmlStats
impl UnsafeUnpin for DmlStats
impl UnwindSafe for DmlStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request