pub struct Base64Standard(/* private fields */);Expand description
Owned bytes serialized as strict standard padded Base64.
This wrapper is still an interoperability type, not a secret container. It clears its initialized bytes on drop as a retention-reduction measure, but clones are independent copies and serialization intentionally exposes the Base64 text to the serializer.
Implementations§
Source§impl Base64Standard
impl Base64Standard
Sourcepub fn into_inner(self) -> Vec<u8> ⓘ
pub fn into_inner(self) -> Vec<u8> ⓘ
Consumes the wrapper and returns the owned bytes.
The returned vector is no longer cleared by this wrapper on drop. Callers handling sensitive values must apply their own cleanup policy.
Trait Implementations§
Source§impl Clone for Base64Standard
impl Clone for Base64Standard
Source§fn clone(&self) -> Base64Standard
fn clone(&self) -> Base64Standard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Base64Standard
Available on crate feature alloc only.
impl Debug for Base64Standard
Available on crate feature
alloc only.Source§impl<'de> Deserialize<'de> for Base64Standard
Available on crate feature alloc only.
impl<'de> Deserialize<'de> for Base64Standard
Available on crate feature
alloc only.Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Drop for Base64Standard
Available on crate feature alloc only.
impl Drop for Base64Standard
Available on crate feature
alloc only.impl Eq for Base64Standard
Available on crate feature
alloc only.Source§impl PartialEq for Base64Standard
Available on crate feature alloc only.
impl PartialEq for Base64Standard
Available on crate feature
alloc only.Auto Trait Implementations§
impl Freeze for Base64Standard
impl RefUnwindSafe for Base64Standard
impl Send for Base64Standard
impl Sync for Base64Standard
impl Unpin for Base64Standard
impl UnsafeUnpin for Base64Standard
impl UnwindSafe for Base64Standard
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