Trait simple_jwt::JWTStringConvertable
[−]
[src]
pub trait JWTStringConvertable: Sized { fn from_base64_str(string: &str) -> Result<Self>; fn to_base64_str(&self) -> Result<String>; }
trait that can be convert to/from base64 string
impl for serde::Serialize
+serde::Deserialize
are already defined
Required Methods
fn from_base64_str(string: &str) -> Result<Self>
fn to_base64_str(&self) -> Result<String>
Implementors
impl<T> JWTStringConvertable for T where
T: Serialize + DeserializeOwned,impl JWTStringConvertable for Claim