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