pub enum Encoded {
Null,
Binary,
Text,
}Expand description
How a parameter value was written by ToSql.
A parameter of any type may be sent as text, which the server parses as it would a literal; binary needs the type’s binary format exactly. The enum is complete: PostgreSQL’s protocol has only these two formats.
Variants§
Null
SQL NULL; nothing was written.
Binary
The bytes are in PostgreSQL’s binary format for the parameter’s type.
Text
The bytes are text that the server parses as the parameter’s type, as it would a literal in the SQL.
Trait Implementations§
impl Copy for Encoded
impl Eq for Encoded
impl StructuralPartialEq for Encoded
Auto Trait Implementations§
impl Forget for Encoded
impl Freeze for Encoded
impl Move for Encoded
impl RefUnwindSafe for Encoded
impl Send for Encoded
impl Sync for Encoded
impl Unpin for Encoded
impl UnsafeUnpin for Encoded
impl UnwindSafe for Encoded
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