pub struct CaProfile {
pub name: &'static str,
pub orders: Gcra,
pub registered_domain: Gcra,
pub identifier_set: Gcra,
}Expand description
One CA’s published limits.
Per-CA because these numbers are not universal — they are Let’s Encrypt’s. A CA whose directory URL is not recognised gets no profile and no budget, rather than being held to somebody else’s numbers: refusing an order a private or commercial CA would happily accept is a self-inflicted outage.
Fields§
§name: &'static str§orders: Gcra§registered_domain: Gcra§identifier_set: GcraImplementations§
Source§impl CaProfile
impl CaProfile
Sourcepub fn for_directory(url: &str) -> Option<CaProfile>
pub fn for_directory(url: &str) -> Option<CaProfile>
Resolve a profile from the ACME directory URL.
Staging gets the production profile deliberately, even though its real limits are much higher. Staging is the compiled-in default for this crate, so an inert budget there would mean the budget code is never exercised in the configuration most deployments start from — untested code on the path that matters. Being conservative on a test CA costs nothing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaProfile
impl RefUnwindSafe for CaProfile
impl Send for CaProfile
impl Sync for CaProfile
impl Unpin for CaProfile
impl UnsafeUnpin for CaProfile
impl UnwindSafe for CaProfile
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