pub enum ResultFormat {
Text,
Binary,
}Expand description
The format used to encode result column values in the PostgreSQL wire protocol.
Variants§
Text
Text format — values are returned as UTF-8 strings, the same format the pg Node.js library receives.
Binary
Binary format — values are returned in PostgreSQL’s binary encoding. This is more efficient but requires type-aware deserialization.
Trait Implementations§
Source§impl Clone for ResultFormat
impl Clone for ResultFormat
impl Copy for ResultFormat
Source§impl Debug for ResultFormat
impl Debug for ResultFormat
impl Eq for ResultFormat
Source§impl PartialEq for ResultFormat
impl PartialEq for ResultFormat
impl StructuralPartialEq for ResultFormat
Auto Trait Implementations§
impl Freeze for ResultFormat
impl RefUnwindSafe for ResultFormat
impl Send for ResultFormat
impl Sync for ResultFormat
impl Unpin for ResultFormat
impl UnsafeUnpin for ResultFormat
impl UnwindSafe for ResultFormat
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