pub struct InsertColumnInput {
pub name: String,
pub type_name: String,
pub value: Option<String>,
}Expand description
One column’s worth of input for an INSERT. Caller emits a list
of these for the columns it wants to set explicitly; columns not
in the list are left to the server’s DEFAULT (which honors
pg_attrdef-defined defaults, sequences, generated values, etc).
Fields§
§name: String§type_name: Stringpg_type.typname for the server-side text→typed cast.
value: Option<String>None writes SQL NULL; Some(text) is bound and cast.
Trait Implementations§
Source§impl Clone for InsertColumnInput
impl Clone for InsertColumnInput
Source§fn clone(&self) -> InsertColumnInput
fn clone(&self) -> InsertColumnInput
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 moreAuto Trait Implementations§
impl Freeze for InsertColumnInput
impl RefUnwindSafe for InsertColumnInput
impl Send for InsertColumnInput
impl Sync for InsertColumnInput
impl Unpin for InsertColumnInput
impl UnsafeUnpin for InsertColumnInput
impl UnwindSafe for InsertColumnInput
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