#[non_exhaustive]pub struct CommandTag { /* private fields */ }Expand description
The command tag returned by PostgreSQL for a completed command
(e.g. "SELECT 3", "INSERT 0 1", "UPDATE 4").
Implementations§
Source§impl CommandTag
impl CommandTag
Sourcepub fn rows_affected(&self) -> Option<u64>
pub fn rows_affected(&self) -> Option<u64>
Parse the number of rows affected from the tag.
Returns None for commands that do not have a row count
(e.g. CREATE TABLE).
Trait Implementations§
Source§impl Clone for CommandTag
impl Clone for CommandTag
Source§fn clone(&self) -> CommandTag
fn clone(&self) -> CommandTag
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 moreSource§impl Debug for CommandTag
impl Debug for CommandTag
Source§impl Default for CommandTag
impl Default for CommandTag
Source§fn default() -> CommandTag
fn default() -> CommandTag
Returns the “default value” for a type. Read more
Source§impl PartialEq for CommandTag
impl PartialEq for CommandTag
Source§fn eq(&self, other: &CommandTag) -> bool
fn eq(&self, other: &CommandTag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommandTag
impl StructuralPartialEq for CommandTag
Auto Trait Implementations§
impl Freeze for CommandTag
impl RefUnwindSafe for CommandTag
impl Send for CommandTag
impl Sync for CommandTag
impl Unpin for CommandTag
impl UnsafeUnpin for CommandTag
impl UnwindSafe for CommandTag
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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