pub enum SecurityError {
Show 39 variants
Encryption(String),
Decryption(String),
KeyManagement(String),
KeyDerivation(String),
Authentication(String),
Authorization(String),
AccessDenied(String),
PermissionDenied(String),
PolicyEvaluation(String),
RoleNotFound(String),
UserNotFound(String),
TenantNotFound(String),
TenantIsolationViolation(String),
QuotaExceeded(String),
AuditLog(String),
AuditQuery(String),
LineageTracking(String),
LineageQuery(String),
Anonymization(String),
ComplianceViolation(String),
GdprCompliance(String),
HipaaCompliance(String),
FedRampCompliance(String),
SecurityScan(String),
VulnerabilityDetected(String),
SecretDetected(String),
MalwareDetected(String),
InvalidConfiguration(String),
InvalidInput(String),
InvalidKeyFormat(String),
InvalidCiphertext(String),
Tls(String),
Certificate(String),
Serialization(String),
Deserialization(String),
Storage(String),
Io(Error),
Json(Error),
Internal(String),
}Expand description
Errors that can occur in security operations.
Variants§
Encryption(String)
Encryption operation failed.
Decryption(String)
Decryption operation failed.
KeyManagement(String)
Key management error.
KeyDerivation(String)
Key derivation error.
Authentication(String)
Authentication failed.
Authorization(String)
Authorization failed.
AccessDenied(String)
Access denied.
PermissionDenied(String)
Permission denied.
PolicyEvaluation(String)
Policy evaluation failed.
RoleNotFound(String)
Role not found.
UserNotFound(String)
User not found.
TenantNotFound(String)
Tenant not found.
TenantIsolationViolation(String)
Tenant isolation violation.
QuotaExceeded(String)
Quota exceeded.
AuditLog(String)
Audit logging error.
AuditQuery(String)
Audit query error.
LineageTracking(String)
Lineage tracking error.
LineageQuery(String)
Lineage query error.
Anonymization(String)
Anonymization error.
ComplianceViolation(String)
Compliance violation.
GdprCompliance(String)
GDPR compliance error.
HipaaCompliance(String)
HIPAA compliance error.
FedRampCompliance(String)
FedRAMP compliance error.
SecurityScan(String)
Security scanning error.
VulnerabilityDetected(String)
Vulnerability detected.
SecretDetected(String)
Secret detected in data.
MalwareDetected(String)
Malware detected.
InvalidConfiguration(String)
Invalid configuration.
InvalidInput(String)
Invalid input.
InvalidKeyFormat(String)
Invalid key format.
InvalidCiphertext(String)
Invalid ciphertext.
Tls(String)
TLS error.
Certificate(String)
Certificate error.
Serialization(String)
Serialization error.
Deserialization(String)
Deserialization error.
Storage(String)
Storage error.
Io(Error)
I/O error.
Json(Error)
JSON error.
Internal(String)
Internal error.
Implementations§
Source§impl SecurityError
impl SecurityError
Sourcepub fn encryption<S: Into<String>>(msg: S) -> Self
pub fn encryption<S: Into<String>>(msg: S) -> Self
Create a new encryption error.
Sourcepub fn decryption<S: Into<String>>(msg: S) -> Self
pub fn decryption<S: Into<String>>(msg: S) -> Self
Create a new decryption error.
Sourcepub fn key_management<S: Into<String>>(msg: S) -> Self
pub fn key_management<S: Into<String>>(msg: S) -> Self
Create a new key management error.
Sourcepub fn key_derivation<S: Into<String>>(msg: S) -> Self
pub fn key_derivation<S: Into<String>>(msg: S) -> Self
Create a new key derivation error.
Sourcepub fn authentication<S: Into<String>>(msg: S) -> Self
pub fn authentication<S: Into<String>>(msg: S) -> Self
Create a new authentication error.
Create a new authorization error.
Sourcepub fn access_denied<S: Into<String>>(msg: S) -> Self
pub fn access_denied<S: Into<String>>(msg: S) -> Self
Create a new access denied error.
Sourcepub fn permission_denied<S: Into<String>>(msg: S) -> Self
pub fn permission_denied<S: Into<String>>(msg: S) -> Self
Create a new permission denied error.
Sourcepub fn tenant_not_found<S: Into<String>>(msg: S) -> Self
pub fn tenant_not_found<S: Into<String>>(msg: S) -> Self
Create a new tenant not found error.
Sourcepub fn quota_exceeded<S: Into<String>>(msg: S) -> Self
pub fn quota_exceeded<S: Into<String>>(msg: S) -> Self
Create a new quota exceeded error.
Sourcepub fn lineage_tracking<S: Into<String>>(msg: S) -> Self
pub fn lineage_tracking<S: Into<String>>(msg: S) -> Self
Create a new lineage tracking error.
Sourcepub fn lineage_query<S: Into<String>>(msg: S) -> Self
pub fn lineage_query<S: Into<String>>(msg: S) -> Self
Create a new lineage query error.
Sourcepub fn audit_query<S: Into<String>>(msg: S) -> Self
pub fn audit_query<S: Into<String>>(msg: S) -> Self
Create a new audit query error.
Sourcepub fn policy_evaluation<S: Into<String>>(msg: S) -> Self
pub fn policy_evaluation<S: Into<String>>(msg: S) -> Self
Create a new policy evaluation error.
Sourcepub fn role_not_found<S: Into<String>>(msg: S) -> Self
pub fn role_not_found<S: Into<String>>(msg: S) -> Self
Create a new role not found error.
Sourcepub fn user_not_found<S: Into<String>>(msg: S) -> Self
pub fn user_not_found<S: Into<String>>(msg: S) -> Self
Create a new user not found error.
Sourcepub fn anonymization<S: Into<String>>(msg: S) -> Self
pub fn anonymization<S: Into<String>>(msg: S) -> Self
Create a new anonymization error.
Sourcepub fn compliance_violation<S: Into<String>>(msg: S) -> Self
pub fn compliance_violation<S: Into<String>>(msg: S) -> Self
Create a new compliance violation error.
Sourcepub fn invalid_input<S: Into<String>>(msg: S) -> Self
pub fn invalid_input<S: Into<String>>(msg: S) -> Self
Create a new invalid input error.
Sourcepub fn serialization<S: Into<String>>(msg: S) -> Self
pub fn serialization<S: Into<String>>(msg: S) -> Self
Create a new serialization error.
Sourcepub fn deserialization<S: Into<String>>(msg: S) -> Self
pub fn deserialization<S: Into<String>>(msg: S) -> Self
Create a new deserialization error.
Sourcepub fn certificate<S: Into<String>>(msg: S) -> Self
pub fn certificate<S: Into<String>>(msg: S) -> Self
Create a new certificate error.
Sourcepub fn invalid_configuration<S: Into<String>>(msg: S) -> Self
pub fn invalid_configuration<S: Into<String>>(msg: S) -> Self
Create a new invalid configuration error.
Sourcepub fn invalid_key_format<S: Into<String>>(msg: S) -> Self
pub fn invalid_key_format<S: Into<String>>(msg: S) -> Self
Create a new invalid key format error.
Sourcepub fn invalid_ciphertext<S: Into<String>>(msg: S) -> Self
pub fn invalid_ciphertext<S: Into<String>>(msg: S) -> Self
Create a new invalid ciphertext error.
Sourcepub fn tenant_isolation_violation<S: Into<String>>(msg: S) -> Self
pub fn tenant_isolation_violation<S: Into<String>>(msg: S) -> Self
Create a new tenant isolation violation error.
Sourcepub fn gdpr_compliance<S: Into<String>>(msg: S) -> Self
pub fn gdpr_compliance<S: Into<String>>(msg: S) -> Self
Create a new GDPR compliance error.
Sourcepub fn hipaa_compliance<S: Into<String>>(msg: S) -> Self
pub fn hipaa_compliance<S: Into<String>>(msg: S) -> Self
Create a new HIPAA compliance error.
Sourcepub fn fedramp_compliance<S: Into<String>>(msg: S) -> Self
pub fn fedramp_compliance<S: Into<String>>(msg: S) -> Self
Create a new FedRAMP compliance error.
Sourcepub fn security_scan<S: Into<String>>(msg: S) -> Self
pub fn security_scan<S: Into<String>>(msg: S) -> Self
Create a new security scan error.
Sourcepub fn vulnerability_detected<S: Into<String>>(msg: S) -> Self
pub fn vulnerability_detected<S: Into<String>>(msg: S) -> Self
Create a new vulnerability detected error.
Sourcepub fn secret_detected<S: Into<String>>(msg: S) -> Self
pub fn secret_detected<S: Into<String>>(msg: S) -> Self
Create a new secret detected error.
Sourcepub fn malware_detected<S: Into<String>>(msg: S) -> Self
pub fn malware_detected<S: Into<String>>(msg: S) -> Self
Create a new malware detected error.
Trait Implementations§
Source§impl Debug for SecurityError
impl Debug for SecurityError
Source§impl Display for SecurityError
impl Display for SecurityError
Source§impl Error for SecurityError
impl Error for SecurityError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for SecurityError
impl From<Error> for SecurityError
Auto Trait Implementations§
impl Freeze for SecurityError
impl !RefUnwindSafe for SecurityError
impl Send for SecurityError
impl Sync for SecurityError
impl Unpin for SecurityError
impl UnsafeUnpin for SecurityError
impl !UnwindSafe for SecurityError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more