pub enum BytesText {
Hex,
Utf8,
}Expand description
How a ColumnType::Bytes column is stored when it’s a text column, to share one
another app owns (TableDef::bytes_text).
Variants§
Hex
Lowercase hex (Builder::bytes_as_hex_text).
Utf8
The bytes as the text they are: the OAuth token columns stored as text with
Builder::store_oauth_tokens_in_plaintext.
Bytes that aren’t UTF-8 are stored as lowercase hex, and every value reads back as
its text’s bytes.
Trait Implementations§
impl Copy for BytesText
impl Eq for BytesText
impl StructuralPartialEq for BytesText
Auto Trait Implementations§
impl Forget for BytesText
impl Freeze for BytesText
impl Move for BytesText
impl RefUnwindSafe for BytesText
impl Send for BytesText
impl Sync for BytesText
impl Unpin for BytesText
impl UnsafeUnpin for BytesText
impl UnwindSafe for BytesText
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