pub struct BytesCodec;Expand description
Identity codec for byte-vector keys and values stored in BYTEA columns.
Trait Implementations§
Source§impl Clone for BytesCodec
impl Clone for BytesCodec
impl Copy for BytesCodec
Source§impl Debug for BytesCodec
impl Debug for BytesCodec
Source§impl Default for BytesCodec
impl Default for BytesCodec
Source§impl PostgresCodec<Vec<u8>, Vec<u8>> for BytesCodec
impl PostgresCodec<Vec<u8>, Vec<u8>> for BytesCodec
Source§type EncodedKey = Vec<u8>
type EncodedKey = Vec<u8>
PostgreSQL representation of the key column.Source§type EncodedValue = Vec<u8>
type EncodedValue = Vec<u8>
PostgreSQL representation of the value column.Source§fn encode_key(
&self,
key: &Vec<u8>,
) -> Result<Self::EncodedKey, PostgresBackendError>
fn encode_key( &self, key: &Vec<u8>, ) -> Result<Self::EncodedKey, PostgresBackendError>
Encodes a typed key. Read more
Source§fn encode_value(
&self,
value: &Vec<u8>,
) -> Result<Self::EncodedValue, PostgresBackendError>
fn encode_value( &self, value: &Vec<u8>, ) -> Result<Self::EncodedValue, PostgresBackendError>
Encodes a typed value. Read more
Source§fn decode_value(
&self,
value: Self::EncodedValue,
) -> Result<Vec<u8>, PostgresBackendError>
fn decode_value( &self, value: Self::EncodedValue, ) -> Result<Vec<u8>, PostgresBackendError>
Decodes a typed value. Read more
Auto Trait Implementations§
impl Freeze for BytesCodec
impl RefUnwindSafe for BytesCodec
impl Send for BytesCodec
impl Sync for BytesCodec
impl Unpin for BytesCodec
impl UnsafeUnpin for BytesCodec
impl UnwindSafe for BytesCodec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more