pub struct RowsAffected {
pub selected: u64,
pub inserted: u64,
pub updated: u64,
pub deleted: u64,
}Expand description
Número de linhas que a última execução afetou, separado por tipo de operação.
Retornado por Statement::rows_affected.
Fields§
§selected: u64Linhas selecionadas por comandos que reportam contagem de seleção.
inserted: u64Linhas inseridas pela última execução.
updated: u64Linhas atualizadas pela última execução.
deleted: u64Linhas excluídas pela última execução.
Implementations§
Source§impl RowsAffected
impl RowsAffected
Sourcepub fn total_modified(&self) -> u64
pub fn total_modified(&self) -> u64
Total de linhas modificadas (inseridas + atualizadas + excluídas) — o número que normalmente interessa após um INSERT/UPDATE/DELETE.
Trait Implementations§
Source§impl Clone for RowsAffected
impl Clone for RowsAffected
Source§fn clone(&self) -> RowsAffected
fn clone(&self) -> RowsAffected
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RowsAffected
Source§impl Debug for RowsAffected
impl Debug for RowsAffected
Source§impl Default for RowsAffected
impl Default for RowsAffected
Source§fn default() -> RowsAffected
fn default() -> RowsAffected
Returns the “default value” for a type. Read more
impl Eq for RowsAffected
Source§impl PartialEq for RowsAffected
impl PartialEq for RowsAffected
Source§fn eq(&self, other: &RowsAffected) -> bool
fn eq(&self, other: &RowsAffected) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RowsAffected
Auto Trait Implementations§
impl Freeze for RowsAffected
impl RefUnwindSafe for RowsAffected
impl Send for RowsAffected
impl Sync for RowsAffected
impl Unpin for RowsAffected
impl UnsafeUnpin for RowsAffected
impl UnwindSafe for RowsAffected
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