pub struct KRNAuth {
pub name: String,
pub crypt_key: String,
pub hmac_secret: String,
pub rest_key: String,
pub rsa_key: String,
}
Fields§
§name: String
§crypt_key: String
§hmac_secret: String
§rest_key: String
§rsa_key: String
Implementations§
Source§impl KRNAuth
impl KRNAuth
pub fn deep_validate(&self, passport: String) -> Result<String, KRNAuthErrors>
pub fn validate(self, passport: String) -> Result<KRNUser, KRNAuthErrors>
pub fn decode_payload(self, payload: String) -> Result<KRNUser, KRNAuthErrors>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KRNAuth
impl<'de> Deserialize<'de> for KRNAuth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KRNAuth
impl RefUnwindSafe for KRNAuth
impl Send for KRNAuth
impl Sync for KRNAuth
impl Unpin for KRNAuth
impl UnwindSafe for KRNAuth
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