[][src]Struct biscuit::Base64Url

pub struct 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 from_bytes(bytes: &[u8]) -> Result<Self, Error>[src]

Convert a sequence of bytes into Self

impl AsRef<[u8]> for Base64Url[src]

impl PartialEq<Base64Url> for Base64Url[src]

impl Clone for 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]

type Target = str

The resulting type after dereferencing.

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]

impl<'de> Deserialize<'de> for Base64Url[src]

Auto Trait Implementations

impl Send for Base64Url

impl Sync for Base64Url

Blanket Implementations

impl<T> CompactPart for T where
    T: CompactJson
[src]

fn to_bytes(&Self) -> Result<Vec<u8>, Error>[src]

JSON serialize the part and return the JSON string bytes

fn from_base64<B: AsRef<[u8]>>(encoded: &B) -> Result<Self, Error> where
    Self: Sized
[src]

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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]