pub fn payload(&self) -> Result<&T, Error> {
        match *self {
            Compact::Decoded { ref payload, .. } => Ok(payload),
            Compact::Encoded(_) => Err(Error::UnsupportedOperation),
        }
    }
/// Convenience method to get a reference to the claims set from a decoded compact JWS
Convenience method to get a reference to the claims set from a decoded compact JWS
Convenience method to get a reference to the claims set from a decoded compact JWS
pub fn payload(&self) -> Result<&T, Error> {
        match *self {
            Compact::Decoded { ref payload, .. } => Ok(payload),
            Compact::Encoded(_) => Err(Error::UnsupportedOperation),
        }
    }
pub fn payload ( & self ) -> Result < & T , Error > { match * self { Compact :: Decoded { ref payload , .. } => Ok ( payload ) , Compact :: Encoded ( _ ) => Err ( Error :: UnsupportedOperation ) , } }
Convenience method to get a reference to the claims set from a decoded compact JWS
Convenience method to get a reference to the claims set from a decoded compact JWS
&self
&self