pub struct LabelExtractor {
pub label: String,
pub ca_id: String,
pub require_cn_match: bool,
pub csr_attributes: Vec<String>,
pub max_validity_days: Option<u32>,
pub disconnected: Option<bool>,
}Expand description
Resolved EST label configuration for the current request.
Analogous to Akamu’s CaId extractor — resolves the {label} path
segment to the corresponding [EstLabelConfig] entry, falling back
to the default label when no path segment is present.
§Usage
ⓘ
async fn handler(label: LabelExtractor, ...) -> impl IntoResponse {
let ca_id = label.ca_id();
// ...
}Fields§
§label: StringThe resolved label name (empty string for the default label).
ca_id: StringThe CA identifier to use for this label.
require_cn_match: boolWhether CN matching is required for this label.
csr_attributes: Vec<String>Per-label CSR attribute OIDs (overrides global when non-empty).
max_validity_days: Option<u32>Per-label maximum validity (overrides CA default).
disconnected: Option<bool>Per-label disconnected mode override.
Implementations§
Trait Implementations§
Source§impl Clone for LabelExtractor
impl Clone for LabelExtractor
Source§fn clone(&self) -> LabelExtractor
fn clone(&self) -> LabelExtractor
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 LabelExtractor
impl Debug for LabelExtractor
Source§impl<S> FromRequestParts<S> for LabelExtractor
impl<S> FromRequestParts<S> for LabelExtractor
Auto Trait Implementations§
impl Freeze for LabelExtractor
impl RefUnwindSafe for LabelExtractor
impl Send for LabelExtractor
impl Sync for LabelExtractor
impl Unpin for LabelExtractor
impl UnsafeUnpin for LabelExtractor
impl UnwindSafe for LabelExtractor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<S, T> FromRequest<S, ViaParts> for T
impl<S, T> FromRequest<S, ViaParts> for T
§type Rejection = <T as FromRequestParts<S>>::Rejection
type Rejection = <T as FromRequestParts<S>>::Rejection
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
§fn from_request(
req: Request<Body>,
state: &S,
) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
fn from_request( req: Request<Body>, state: &S, ) -> impl Future<Output = Result<T, <T as FromRequest<S, ViaParts>>::Rejection>>
Perform the extraction.
§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