[−][src]Struct biscuit::Base64Url
A newtype wrapper around a string to indicate it's base64 URL encoded
Methods
impl Base64Url
[src]
pub fn unwrap(self) -> String
[src]
Unwrap the embedded string, consuming self in the process
pub fn str(&self) -> &str
[src]
"Borrow" the string
Trait Implementations
impl CompactPart for Base64Url
[src]
fn to_bytes(&self) -> Result<Vec<u8>, Error>
[src]
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
[src]
Convert a sequence of bytes into Self
fn to_base64(&self) -> Result<Base64Url, Error>
[src]
fn from_base64<B: AsRef<[u8]>>(encoded: &B) -> Result<Self, Error>
[src]
impl AsRef<[u8]> for Base64Url
[src]
impl PartialEq<Base64Url> for Base64Url
[src]
impl Clone for Base64Url
[src]
fn clone(&self) -> Base64Url
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Base64Url
[src]
impl Debug for Base64Url
[src]
impl Deref for Base64Url
[src]
impl FromStr for Base64Url
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
This never fails
impl Borrow<str> for Base64Url
[src]
impl Serialize for Base64Url
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Base64Url
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> CompactPart for T where
T: CompactJson,
[src]
T: CompactJson,
fn to_bytes(&Self) -> Result<Vec<u8>, Error>
[src]
JSON serialize the part and return the JSON string bytes
fn from_bytes(&[u8]) -> Result<T, Error>
[src]
fn from_base64<B: AsRef<[u8]>>(encoded: &B) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
Base64 decode into Self
fn to_base64(&self) -> Result<Base64Url, Error>
[src]
Serialize Self
to some form and then base64URL Encode
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,