pub struct CopyTarget {
pub relid: u32,
pub name: String,
pub kind: u8,
pub columns: Vec<String>,
pub selected: Vec<usize>,
}Expand description
The table of a COPY ... FROM, as DoCopy and BeginCopyFrom open it.
Fields§
§relid: u32The OID of the relation.
name: StringThe name of the relation, for the errors.
kind: u8relkind. CopyFrom checks it after CopyInResponse.
columns: Vec<String>The names of the user columns of the relation, in the order of the catalog.
selected: Vec<usize>The columns that the data gives, as indexes into columns.
Trait Implementations§
Source§impl Clone for CopyTarget
impl Clone for CopyTarget
Auto Trait Implementations§
impl Freeze for CopyTarget
impl RefUnwindSafe for CopyTarget
impl Send for CopyTarget
impl Sync for CopyTarget
impl Unpin for CopyTarget
impl UnsafeUnpin for CopyTarget
impl UnwindSafe for CopyTarget
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