pub struct ResolutionRequest {
pub link_type: Option<Gs1LinkType>,
pub media_type: Option<DppMediaType>,
pub audience: Option<Audience>,
}Expand description
A parsed resolution request combining the Digital Link with negotiation hints.
Fields§
§link_type: Option<Gs1LinkType>The requested link type (from ?linkType= query parameter).
media_type: Option<DppMediaType>The requested media type (from Accept header).
audience: Option<Audience>The requesting audience (from authentication / credential).
None means public access.
Implementations§
Source§impl ResolutionRequest
impl ResolutionRequest
Sourcepub fn from_accept_header(accept: &str) -> Self
pub fn from_accept_header(accept: &str) -> Self
Build a resolution request from an HTTP Accept header string.
Parses q-values per RFC 9110 §12.4 and selects the highest-priority
non-wildcard media type. Wildcards (*/*, application/*) are
deprioritised below explicit types at the same q-value.
Trait Implementations§
Source§impl Clone for ResolutionRequest
impl Clone for ResolutionRequest
Source§fn clone(&self) -> ResolutionRequest
fn clone(&self) -> ResolutionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolutionRequest
impl RefUnwindSafe for ResolutionRequest
impl Send for ResolutionRequest
impl Sync for ResolutionRequest
impl Unpin for ResolutionRequest
impl UnsafeUnpin for ResolutionRequest
impl UnwindSafe for ResolutionRequest
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