pub struct FetchedDocument {
pub body: String,
pub cache_control: Option<String>,
}Expand description
A fetched HTTP document plus the caching metadata the AUTH-8 policy needs.
Plain-data DTO (public fields, like AuthContext): it carries no
authority — the validator independently validates everything it reads
from the body.
Fields§
§body: StringThe response body (UTF-8 text; both discovery docs and JWKS are JSON).
cache_control: Option<String>The raw Cache-Control response header, if the server sent one.
The validator derives the JWKS TTL from its max-age directive,
clamped to 3600 s (AUTH-8).
Trait Implementations§
Source§impl Clone for FetchedDocument
impl Clone for FetchedDocument
Auto Trait Implementations§
impl Forget for FetchedDocument
impl Freeze for FetchedDocument
impl Move for FetchedDocument
impl RefUnwindSafe for FetchedDocument
impl Send for FetchedDocument
impl Sync for FetchedDocument
impl Unpin for FetchedDocument
impl UnsafeUnpin for FetchedDocument
impl UnwindSafe for FetchedDocument
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