pub fn payload_mut(&mut self) -> Result<&mut T, Error> {
        match *self {
            Compact::Decrypted {
                ref mut payload, ..
            } => Ok(payload),
            Compact::Encrypted(_) => Err(Error::UnsupportedOperation),
        }
    }
/// Convenience method to get a mutable reference to the payload from an Decrypted JWE
Convenience method to get a mutable reference to the payload from an Decrypted JWE
Convenience method to get a mutable reference to the payload from an Decrypted JWE
pub fn payload_mut(&mut self) -> Result<&mut T, Error> {
        match *self {
            Compact::Decrypted {
                ref mut payload, ..
            } => Ok(payload),
            Compact::Encrypted(_) => Err(Error::UnsupportedOperation),
        }
    }
pub fn payload_mut ( & mut self ) -> Result < & mut T , Error > { match * self { Compact :: Decrypted { ref mut payload , .. } => Ok ( payload ) , Compact :: Encrypted ( _ ) => Err ( Error :: UnsupportedOperation ) , } }
Convenience method to get a mutable reference to the payload from an Decrypted JWE
Convenience method to get a mutable reference to the payload from an Decrypted JWE
&mut self
&mut self