pub struct CopyPayload {
pub data: String,
pub terminated: bool,
}Expand description
The inline payload of a COPY ... FROM STDIN statement, captured
verbatim from the source text.
Fields§
§data: StringThe payload as written, starting on the line after the command and
running up to the \. terminator line. Field separators, escapes and
the \N null marker are left for the caller to interpret.
terminated: boolWhether the \. terminator line was present.
Trait Implementations§
Source§impl Clone for CopyPayload
impl Clone for CopyPayload
Source§fn clone(&self) -> CopyPayload
fn clone(&self) -> CopyPayload
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 CopyPayload
impl Debug for CopyPayload
impl Eq for CopyPayload
Source§impl Hash for CopyPayload
impl Hash for CopyPayload
Source§impl Ord for CopyPayload
impl Ord for CopyPayload
Source§fn cmp(&self, other: &CopyPayload) -> Ordering
fn cmp(&self, other: &CopyPayload) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CopyPayload
impl PartialEq for CopyPayload
Source§impl PartialOrd for CopyPayload
impl PartialOrd for CopyPayload
impl StructuralPartialEq for CopyPayload
Auto Trait Implementations§
impl Freeze for CopyPayload
impl RefUnwindSafe for CopyPayload
impl Send for CopyPayload
impl Sync for CopyPayload
impl Unpin for CopyPayload
impl UnsafeUnpin for CopyPayload
impl UnwindSafe for CopyPayload
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