pub enum DppMediaType {
Json,
JsonLd,
Html,
Pdf,
Cbor,
Custom(String),
}Expand description
Media types relevant to DPP content negotiation.
Variants§
Json
application/json — raw DPP JSON data.
JsonLd
application/ld+json — JSON-LD representation with context.
Html
text/html — human-readable product information page.
application/pdf — PDF version of the DPP.
Cbor
application/cbor — compact binary representation.
Custom(String)
Custom media type.
Implementations§
Trait Implementations§
Source§impl Clone for DppMediaType
impl Clone for DppMediaType
Source§fn clone(&self) -> DppMediaType
fn clone(&self) -> DppMediaType
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 DppMediaType
impl Debug for DppMediaType
Source§impl<'de> Deserialize<'de> for DppMediaType
impl<'de> Deserialize<'de> for DppMediaType
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
impl Eq for DppMediaType
Source§impl Hash for DppMediaType
impl Hash for DppMediaType
Source§impl PartialEq for DppMediaType
impl PartialEq for DppMediaType
Source§impl Serialize for DppMediaType
impl Serialize for DppMediaType
impl StructuralPartialEq for DppMediaType
Auto Trait Implementations§
impl Freeze for DppMediaType
impl RefUnwindSafe for DppMediaType
impl Send for DppMediaType
impl Sync for DppMediaType
impl Unpin for DppMediaType
impl UnsafeUnpin for DppMediaType
impl UnwindSafe for DppMediaType
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.