pub struct TargetColumn {
pub name: String,
pub type_name: String,
pub cast_type: String,
pub generated: bool,
pub identity_always: bool,
}Expand description
Target column metadata used by the sink to cast values.
Fields§
§name: String§type_name: StringDeclared type with modifiers, e.g. character varying(80); for comparison with the
source and for messages.
cast_type: StringType without modifiers, e.g. character varying, used in $n::type casts. An
explicit cast to a modified type (::varchar(80), ::numeric(12,2)) silently
truncates or rounds; casting to the base type lets the column’s own assignment
rules apply, which raise an error for values that do not fit, as COPY does.
generated: bool§identity_always: boolGENERATED ALWAYS AS IDENTITY: cannot be assigned by UPDATE, never changes on the source.
Trait Implementations§
Source§impl Clone for TargetColumn
impl Clone for TargetColumn
Auto Trait Implementations§
impl Freeze for TargetColumn
impl RefUnwindSafe for TargetColumn
impl Send for TargetColumn
impl Sync for TargetColumn
impl Unpin for TargetColumn
impl UnsafeUnpin for TargetColumn
impl UnwindSafe for TargetColumn
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