pub enum Profile<I> {
Standard(StandardProfile),
Custom(I),
}
Expand description
Value for the profile
parameter defined for the application/ld+json
.
Standard values defined by the JSON-LD specification are defined by the
StandardProfile
type.
Variants§
Standard(StandardProfile)
Custom(I)
Implementations§
source§impl<I> Profile<I>
impl<I> Profile<I>
pub fn new(
iri: Iri<'_>,
vocabulary: &mut impl IriVocabularyMut<Iri = I>
) -> Profile<I>
pub fn iri<'a>(&'a self, vocabulary: &'a impl IriVocabulary<Iri = I>) -> Iri<'a>
Trait Implementations§
source§impl<I> Ord for Profile<I>where
I: Ord,
impl<I> Ord for Profile<I>where
I: Ord,
1.21.0 · 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
source§impl<I> PartialEq<Profile<I>> for Profile<I>where
I: PartialEq<I>,
impl<I> PartialEq<Profile<I>> for Profile<I>where
I: PartialEq<I>,
source§impl<I> PartialOrd<Profile<I>> for Profile<I>where
I: PartialOrd<I>,
impl<I> PartialOrd<Profile<I>> for Profile<I>where
I: PartialOrd<I>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<I> Copy for Profile<I>where
I: Copy,
impl<I> Eq for Profile<I>where
I: Eq,
impl<I> StructuralEq for Profile<I>
impl<I> StructuralPartialEq for Profile<I>
Auto Trait Implementations§
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> UnwindSafe for Profile<I>where
I: UnwindSafe,
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.