pub struct JsonbBinary { /* private fields */ }Expand description
Binary representation of a JSONB value.
Implementations§
Source§impl JsonbBinary
impl JsonbBinary
Sourcepub fn from_bytes(data: Vec<u8>) -> Self
pub fn from_bytes(data: Vec<u8>) -> Self
Creates a new JsonbBinary from raw bytes.
Sourcepub fn into_bytes(self) -> Vec<u8>
pub fn into_bytes(self) -> Vec<u8>
Consumes self and returns the underlying bytes.
Sourcepub fn encode(value: &JsonbValue) -> Self
pub fn encode(value: &JsonbValue) -> Self
Encodes a JsonbValue into binary format.
Sourcepub fn decode(&self) -> JsonbValue
pub fn decode(&self) -> JsonbValue
Decodes binary data into a JsonbValue.
Trait Implementations§
Source§impl Clone for JsonbBinary
impl Clone for JsonbBinary
Source§fn clone(&self) -> JsonbBinary
fn clone(&self) -> JsonbBinary
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 JsonbBinary
impl Debug for JsonbBinary
Source§impl PartialEq for JsonbBinary
impl PartialEq for JsonbBinary
impl StructuralPartialEq for JsonbBinary
Auto Trait Implementations§
impl Freeze for JsonbBinary
impl RefUnwindSafe for JsonbBinary
impl Send for JsonbBinary
impl Sync for JsonbBinary
impl Unpin for JsonbBinary
impl UnwindSafe for JsonbBinary
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