#[non_exhaustive]pub struct CopyTableReport {
pub rows_copied: u64,
pub not_null_columns: usize,
pub default_columns: usize,
pub collated_columns: usize,
pub assumed_primary_keys: usize,
pub assumed_unique_constraints: usize,
pub unpreserved: Vec<UnpreservedItem>,
}Expand description
What a Catalog::copy_table call reproduced,
and what it dropped.
A copy that returns Ok has moved every row. It has not necessarily
reproduced every constraint — check is_fully_preserved.
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.rows_copied: u64Rows written into the destination table.
not_null_columns: usizeNOT NULL columns carried across.
default_columns: usizeDEFAULT expressions carried across.
collated_columns: usizeExplicitly collated columns carried across.
assumed_primary_keys: usizeASSUMED PRIMARY KEY constraints carried across.
assumed_unique_constraints: usizeASSUMED UNIQUE constraints carried across.
unpreserved: Vec<UnpreservedItem>Schema elements that could not be reproduced.
Implementations§
Source§impl CopyTableReport
impl CopyTableReport
Sourcepub fn is_fully_preserved(&self) -> bool
pub fn is_fully_preserved(&self) -> bool
Returns true if every constraint on the source was reproduced.
Trait Implementations§
Source§impl Clone for CopyTableReport
impl Clone for CopyTableReport
Source§fn clone(&self) -> CopyTableReport
fn clone(&self) -> CopyTableReport
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 CopyTableReport
impl Debug for CopyTableReport
Source§impl Default for CopyTableReport
impl Default for CopyTableReport
Source§fn default() -> CopyTableReport
fn default() -> CopyTableReport
Returns the “default value” for a type. Read more
impl Eq for CopyTableReport
Source§impl PartialEq for CopyTableReport
impl PartialEq for CopyTableReport
impl StructuralPartialEq for CopyTableReport
Auto Trait Implementations§
impl Freeze for CopyTableReport
impl RefUnwindSafe for CopyTableReport
impl Send for CopyTableReport
impl Sync for CopyTableReport
impl Unpin for CopyTableReport
impl UnsafeUnpin for CopyTableReport
impl UnwindSafe for CopyTableReport
Blanket Implementations§
impl<T> Allocation for T
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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