pub fn is_cannot_change_immutable_public_key_fields(&self) -> bool {
        matches!(
            &self.kind,
            UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields(_)
        )
    }
/// Returns `true` if the error kind is `UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields`.
Returns `true` if the error kind is `UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields`.
Returns ` true ` if the error kind is ` UpdatePublicKeyErrorKind :: CannotChangeImmutablePublicKeyFields ` .
pub fn is_cannot_change_immutable_public_key_fields(&self) -> bool {
        matches!(
            &self.kind,
            UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields(_)
        )
    }
pub fn is_cannot_change_immutable_public_key_fields ( & self ) -> bool { matches ! ( self kind UpdatePublicKeyErrorKind CannotChangeImmutablePublicKeyFields ( ) ) }
Returns `true` if the error kind is `UpdatePublicKeyErrorKind::CannotChangeImmutablePublicKeyFields`.
Returns ` true ` if the error kind is ` UpdatePublicKeyErrorKind :: CannotChangeImmutablePublicKeyFields ` .
&self
&self