pub struct ProfileConstraints {
pub key_types: Vec<String>,
pub key_parameters: Vec<String>,
pub key_usage: Vec<String>,
pub extended_key_usage: Vec<String>,
pub subject_dn_components: Vec<String>,
}Expand description
Extracted constraints from a profile, suitable for deriving CSR attributes.
Used by kipuka’s /csrattrs endpoint to tell EST clients what to
include in their certificate signing requests.
Fields§
§key_types: Vec<String>Allowed key types (e.g., “RSA”, “EC”, “ML-DSA”).
key_parameters: Vec<String>Allowed key sizes or named curves (e.g., “2048”, “P-256”, “ML-DSA-65”).
key_usage: Vec<String>Key usage flags (e.g., “digitalSignature”, “keyEncipherment”).
extended_key_usage: Vec<String>Extended key usage OIDs (e.g., “1.3.6.1.5.5.7.3.1” for TLS server).
subject_dn_components: Vec<String>Required subject DN components (e.g., “CN”, “O”, “OU”).
Trait Implementations§
Source§impl Clone for ProfileConstraints
impl Clone for ProfileConstraints
Source§fn clone(&self) -> ProfileConstraints
fn clone(&self) -> ProfileConstraints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProfileConstraints
impl Debug for ProfileConstraints
Source§impl Default for ProfileConstraints
impl Default for ProfileConstraints
Source§fn default() -> ProfileConstraints
fn default() -> ProfileConstraints
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProfileConstraints
impl RefUnwindSafe for ProfileConstraints
impl Send for ProfileConstraints
impl Sync for ProfileConstraints
impl Unpin for ProfileConstraints
impl UnsafeUnpin for ProfileConstraints
impl UnwindSafe for ProfileConstraints
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
Mutably borrows from an owned value. Read more