#[non_exhaustive]pub struct UnpreservedItem {
pub table: String,
pub column: String,
pub reason: UnpreservedReason,
pub detail: String,
}Expand description
One piece of source schema that Catalog::copy_table
could not reproduce.
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.table: StringThe schema-qualified table the dropped element belonged to.
Reports are merged across tables when a whole database is copied
(CopyTableReport::merge), so without this a bare column name is
ambiguous: two tables each carrying a created_at default would
produce two indistinguishable entries.
column: StringThe column the dropped schema element belonged to.
Empty for a table-level element such as a constraint, which belongs to
a set of columns rather than to one; see detail for those.
reason: UnpreservedReasonWhy it could not be carried across.
detail: StringThe offending source text, so the caller can reapply it by hand.
Trait Implementations§
Source§impl Clone for UnpreservedItem
impl Clone for UnpreservedItem
Source§fn clone(&self) -> UnpreservedItem
fn clone(&self) -> UnpreservedItem
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 UnpreservedItem
impl Debug for UnpreservedItem
Source§impl Display for UnpreservedItem
impl Display for UnpreservedItem
impl Eq for UnpreservedItem
Source§impl PartialEq for UnpreservedItem
impl PartialEq for UnpreservedItem
impl StructuralPartialEq for UnpreservedItem
Auto Trait Implementations§
impl Freeze for UnpreservedItem
impl RefUnwindSafe for UnpreservedItem
impl Send for UnpreservedItem
impl Sync for UnpreservedItem
impl Unpin for UnpreservedItem
impl UnsafeUnpin for UnpreservedItem
impl UnwindSafe for UnpreservedItem
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