pub struct Base64String { /* private fields */ }
Implementations§
Source§impl Base64String
impl Base64String
pub fn new(value: String, url_safe: bool, padding: bool) -> Self
pub const fn is_url_safe(&self) -> bool
pub const fn is_padding(&self) -> bool
pub fn len(&self) -> usize
pub fn to_value(&self) -> &str
pub fn decode_to_bytes(self) -> Result<Vec<u8>>
pub fn decode_to_string(self) -> Result<String>
pub fn decode_with_endian_to_bigint(self, endian: Endian) -> Result<BigInt>
Trait Implementations§
Source§impl Clone for Base64String
impl Clone for Base64String
Source§fn clone(&self) -> Base64String
fn clone(&self) -> Base64String
Returns a duplicate of the value. Read more
1.0.0 · 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 Base64String
impl Debug for Base64String
Auto Trait Implementations§
impl Freeze for Base64String
impl RefUnwindSafe for Base64String
impl Send for Base64String
impl Sync for Base64String
impl Unpin for Base64String
impl UnwindSafe for Base64String
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