pub enum Profile<I = IriBuf> {
Standard(StandardProfile),
Custom(I),
}Expand description
Value of the profile parameter of the application/ld+json media type.
The values the JSON-LD specification itself registers are enumerated by
StandardProfile; any other IRI is carried as Profile::Custom.
Variants§
Standard(StandardProfile)
A profile registered by the JSON-LD specification.
Custom(I)
A profile outside the ones the specification registers.
Implementations§
Source§impl<I> Profile<I>
impl<I> Profile<I>
Sourcepub fn new_with(
iri: Iri<&str>,
vocabulary: &mut impl IriVocabularyMut<Iri = I>,
) -> Self
pub fn new_with( iri: Iri<&str>, vocabulary: &mut impl IriVocabularyMut<Iri = I>, ) -> Self
Builds a profile from an IRI, interning it in the given vocabulary.
Trait Implementations§
impl<I: Copy> Copy for Profile<I>
impl<I: Eq> Eq for Profile<I>
Source§impl<I: Ord> Ord for Profile<I>
impl<I: Ord> Ord for Profile<I>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<I: PartialOrd> PartialOrd for Profile<I>
impl<I: PartialOrd> PartialOrd for Profile<I>
impl<I: PartialEq> StructuralPartialEq for Profile<I>
Auto Trait Implementations§
impl<I> Freeze for Profile<I>where
I: Freeze,
impl<I> RefUnwindSafe for Profile<I>where
I: RefUnwindSafe,
impl<I> Send for Profile<I>where
I: Send,
impl<I> Sync for Profile<I>where
I: Sync,
impl<I> Unpin for Profile<I>where
I: Unpin,
impl<I> UnsafeUnpin for Profile<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for Profile<I>where
I: UnwindSafe,
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Views this value as an
Unordered reference.impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Checks if
self is equivalent to key.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.