#[repr(u16)]pub enum FormatCode {
Text = 0,
Binary = 1,
}Expand description
Data format code in PostgreSQL protocol.
Variants§
Text = 0
Text format (human-readable)
Binary = 1
Binary format (type-specific packed representation)
Implementations§
Trait Implementations§
Source§impl Clone for FormatCode
impl Clone for FormatCode
Source§fn clone(&self) -> FormatCode
fn clone(&self) -> FormatCode
Returns a duplicate of the value. Read more
1.0.0 · 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 FormatCode
impl Debug for FormatCode
Source§impl Default for FormatCode
impl Default for FormatCode
Source§fn default() -> FormatCode
fn default() -> FormatCode
Returns the “default value” for a type. Read more
Source§impl From<u16> for FormatCode
impl From<u16> for FormatCode
Source§impl PartialEq for FormatCode
impl PartialEq for FormatCode
impl Copy for FormatCode
impl Eq for FormatCode
impl StructuralPartialEq for FormatCode
Auto Trait Implementations§
impl Freeze for FormatCode
impl RefUnwindSafe for FormatCode
impl Send for FormatCode
impl Sync for FormatCode
impl Unpin for FormatCode
impl UnwindSafe for FormatCode
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