pub struct EncryptionPolicy {
pub policy_id: String,
pub name: String,
pub min_key_size: u32,
pub required_algorithms: Vec<KeyAlgorithm>,
pub compliance_standards: Vec<ComplianceStandard>,
pub key_rotation_interval_days: u32,
pub require_encryption_at_rest: bool,
}Expand description
Encryption policy
A named policy that defines the cryptographic constraints a key or
encryption-at-rest configuration must satisfy. Policies are registered
with EncryptionPolicyEngine and validated against keys and storage
configurations.
Fields§
§policy_id: StringUnique identifier for the policy.
name: StringHuman-readable policy name.
min_key_size: u32Minimum acceptable key size in bits.
required_algorithms: Vec<KeyAlgorithm>Algorithms that are permitted by this policy.
compliance_standards: Vec<ComplianceStandard>Compliance standards the policy enforces.
key_rotation_interval_days: u32Maximum age (in days) a key may reach before requiring rotation.
require_encryption_at_rest: boolWhether encryption at rest is mandatory under this policy.
Trait Implementations§
Source§impl Clone for EncryptionPolicy
impl Clone for EncryptionPolicy
Source§fn clone(&self) -> EncryptionPolicy
fn clone(&self) -> EncryptionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncryptionPolicy
impl RefUnwindSafe for EncryptionPolicy
impl Send for EncryptionPolicy
impl Sync for EncryptionPolicy
impl Unpin for EncryptionPolicy
impl UnsafeUnpin for EncryptionPolicy
impl UnwindSafe for EncryptionPolicy
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
Converts
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>
Converts
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