pub fn identity(&self) -> &[u8] {
        match &self.credential {
            MlsCredentialType::Basic(basic_credential) => basic_credential.identity.as_slice(),
            // TODO: implement getter for identity for X509 certificates. See issue #134.
            MlsCredentialType::X509(_) => panic!("X509 certificates are not yet implemented."),
        }
    }
/// Get the identity of a given credential.
Get the identity of a given credential.
Get the identity of a given credential .
pub fn identity(&self) -> &[u8] {
        match &self.credential {
            MlsCredentialType::Basic(basic_credential) => basic_credential.identity.as_slice(),
            // TODO: implement getter for identity for X509 certificates. See issue #134.
            MlsCredentialType::X509(_) => panic!("X509 certificates are not yet implemented."),
        }
    }
pub fn identity ( & self ) -> & [ u8 ] { match & self . credential { MlsCredentialType :: Basic ( basic_credential ) => basic_credential . identity . as_slice ( ) , // TODO: implement getter for identity for X509 certificates. See issue #134. MlsCredentialType :: X509 ( _ ) => panic ! ( " " ) , } }
Get the identity of a given credential.
Get the identity of a given credential .
&self
&self