pub struct StarOrder {Show 15 fields
pub id: String,
pub subject_dn: String,
pub key_type: String,
pub profile: String,
pub renewal_interval: Duration,
pub lifetime_end: DateTime<Utc>,
pub max_renewals: u32,
pub current_renewals: u32,
pub status: StarOrderStatus,
pub requestor_dn: Option<String>,
pub ca_id: String,
pub csr_der: Vec<u8>,
pub current_certificate: Option<StarCertificate>,
pub created_at: DateTime<Utc>,
pub cancelled_at: Option<DateTime<Utc>>,
}Expand description
A STAR order representing a recurring certificate renewal agreement.
RFC 8739 §3.1: the order captures the renewal interval, total lifetime, subject identity, and the CA responsible for issuance.
Fields§
§id: StringUnique order identifier (UUID v4).
subject_dn: StringSubject distinguished name for issued certificates.
key_type: StringKey algorithm, e.g., "ec:P-256" or "rsa:2048".
profile: StringEnrollment profile name (maps to EnrollmentProfile).
renewal_interval: DurationHow often to renew the certificate.
RFC 8739 §3.1: auto-renewal-lifetime in the order resource.
lifetime_end: DateTime<Utc>When the STAR order expires and no more renewals are issued.
RFC 8739 §3.1: auto-renewal-end-date.
max_renewals: u32Maximum number of certificates this order will produce.
current_renewals: u32How many renewals have been issued so far.
status: StarOrderStatusCurrent lifecycle status.
requestor_dn: Option<String>DN of the entity that requested this order (from TLS client cert).
ca_id: StringCA identifier that signs renewal certificates.
csr_der: Vec<u8>DER-encoded PKCS#10 CSR used for each renewal.
current_certificate: Option<StarCertificate>Most recently issued certificate (if any).
created_at: DateTime<Utc>When the order was created.
cancelled_at: Option<DateTime<Utc>>When the order was cancelled (only set for Cancelled status).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StarOrder
impl<'de> Deserialize<'de> for StarOrder
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for StarOrder
impl RefUnwindSafe for StarOrder
impl Send for StarOrder
impl Sync for StarOrder
impl Unpin for StarOrder
impl UnsafeUnpin for StarOrder
impl UnwindSafe for StarOrder
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> 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>
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