pub struct Base64Bytes(pub Vec<u8>);Expand description
Bytes persisted as base64 in a TEXT column, uniformly across dialects.
Wire it into the ORM with the impl_string_column!
machinery via its StringColumn impl below.
Tuple Fields§
§0: Vec<u8>Implementations§
Trait Implementations§
Source§impl Clone for Base64Bytes
impl Clone for Base64Bytes
Source§impl Debug for Base64Bytes
impl Debug for Base64Bytes
Source§impl Default for Base64Bytes
impl Default for Base64Bytes
impl Eq for Base64Bytes
Source§impl From<Base64Bytes> for Vec<u8>
impl From<Base64Bytes> for Vec<u8>
Source§fn from(b: Base64Bytes) -> Self
fn from(b: Base64Bytes) -> Self
Converts to this type from the input type.
Source§impl FromColumn for Base64Bytes
impl FromColumn for Base64Bytes
Source§impl PartialEq for Base64Bytes
impl PartialEq for Base64Bytes
Source§impl SqlType for Base64Bytes
impl SqlType for Base64Bytes
const COLUMN_TYPE: ColumnType = crate::ColumnType::Text
const NULLABLE: bool = false
Source§impl StringColumn for Base64Bytes
impl StringColumn for Base64Bytes
fn to_column_str(&self) -> String
fn from_column_str(s: &str) -> Result<Self>
impl StructuralPartialEq for Base64Bytes
Auto Trait Implementations§
impl Freeze for Base64Bytes
impl RefUnwindSafe for Base64Bytes
impl Send for Base64Bytes
impl Sync for Base64Bytes
impl Unpin for Base64Bytes
impl UnsafeUnpin for Base64Bytes
impl UnwindSafe for Base64Bytes
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