pub struct Base64<T: AsRef<[u8]>>(pub T);Expand description
Base64 conversion
When using Base64 with ToBytes any type that implement AsRef<[T]> may be used as the inner value,
but only Base64<String> and Base64<Vec> may be used with FromBytes
A value wrapped in Base64 will automatically be encoded/decoded using base64, the inner value should not
already be base64 encoded.
Tuple Fields§
§0: TTrait Implementations§
Source§impl FromBytesOwned for Base64<String>
impl FromBytesOwned for Base64<String>
Auto Trait Implementations§
impl<T> Freeze for Base64<T>where
T: Freeze,
impl<T> RefUnwindSafe for Base64<T>where
T: RefUnwindSafe,
impl<T> Send for Base64<T>where
T: Send,
impl<T> Sync for Base64<T>where
T: Sync,
impl<T> Unpin for Base64<T>where
T: Unpin,
impl<T> UnwindSafe for Base64<T>where
T: UnwindSafe,
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