pub fn to_base64(&self) -> Result<String, error::Token> {
        match self.container.as_ref() {
            None => Err(error::Token::InternalError),
            Some(c) => c
                .to_vec()
                .map_err(error::Token::Format)
                .map(|v| base64::encode_config(v, base64::URL_SAFE)),
        }
    }
/// serializes the token and encode it to a (URL safe) base64 string
serializes the token and encode it to a (URL safe) base64 string
serializes the token and encode it to a ( URL safe ) base64 string
pub fn to_base64(&self) -> Result<String, error::Token> {
        match self.container.as_ref() {
            None => Err(error::Token::InternalError),
            Some(c) => c
                .to_vec()
                .map_err(error::Token::Format)
                .map(|v| base64::encode_config(v, base64::URL_SAFE)),
        }
    }
pub fn to_base64 ( & self ) -> Result < String , error :: Token > { match self . container . as_ref ( ) { None => Err ( error :: Token :: InternalError ) , Some ( c ) => c . to_vec ( ) . map_err ( error :: Token :: Format ) . map ( | v | base64 :: encode_config ( v , base64 :: URL_SAFE ) ) , } }
serializes the token and encode it to a (URL safe) base64 string
serializes the token and encode it to a ( URL safe ) base64 string
&self
&self