pub struct LinkDescriptor {
pub href: String,
pub link_type: Gs1LinkType,
pub media_type: DppMediaType,
pub min_access_tier: AccessTier,
pub title: Option<String>,
pub language: Option<String>,
}Expand description
Describes one available representation of a DPP resource.
A resolver builds a list of these for each product, and the negotiation logic selects the best match for the request.
Fields§
§href: StringThe URL of this representation.
link_type: Gs1LinkTypeLink type (GS1 vocabulary).
media_type: DppMediaTypeMedia type served at this URL.
min_access_tier: AccessTierMinimum access tier required to view this resource.
title: Option<String>Human-readable title.
language: Option<String>ISO 639-1 language code (e.g., "en", "de").
Trait Implementations§
Source§impl Clone for LinkDescriptor
impl Clone for LinkDescriptor
Source§fn clone(&self) -> LinkDescriptor
fn clone(&self) -> LinkDescriptor
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 moreSource§impl Debug for LinkDescriptor
impl Debug for LinkDescriptor
Source§impl<'de> Deserialize<'de> for LinkDescriptor
impl<'de> Deserialize<'de> for LinkDescriptor
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LinkDescriptor
impl RefUnwindSafe for LinkDescriptor
impl Send for LinkDescriptor
impl Sync for LinkDescriptor
impl Unpin for LinkDescriptor
impl UnsafeUnpin for LinkDescriptor
impl UnwindSafe for LinkDescriptor
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