pub struct JwsSignature {
pub protected: String,
pub signature: String,
}Fields§
§protected: String§signature: StringImplementations§
Source§impl JwsSignature
impl JwsSignature
Sourcepub fn get_kid(&self) -> Option<String>
pub fn get_kid(&self) -> Option<String>
Extracts the kid (key identifier) from the protected header
Sourcepub fn get_protected_header(&self) -> Result<JwsProtected, Box<dyn Error>>
pub fn get_protected_header(&self) -> Result<JwsProtected, Box<dyn Error>>
Decodes and returns the protected header
Trait Implementations§
Source§impl Debug for JwsSignature
impl Debug for JwsSignature
Source§impl<'de> Deserialize<'de> for JwsSignature
impl<'de> Deserialize<'de> for JwsSignature
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 JwsSignature
impl RefUnwindSafe for JwsSignature
impl Send for JwsSignature
impl Sync for JwsSignature
impl Unpin for JwsSignature
impl UnsafeUnpin for JwsSignature
impl UnwindSafe for JwsSignature
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