Struct json_ld_context_processing::Options
source · pub struct Options {
pub processing_mode: ProcessingMode,
pub override_protected: bool,
pub propagate: bool,
}
Expand description
Options of the Context Processing Algorithm.
Fields§
§processing_mode: ProcessingMode
The processing mode
override_protected: bool
Override protected definitions.
propagate: bool
Propagate the processed context.
Implementations§
source§impl Options
impl Options
sourcepub fn with_override(&self) -> Options
pub fn with_override(&self) -> Options
Return the same set of options, but with override_protected
set to true
.
sourcepub fn with_no_override(&self) -> Options
pub fn with_no_override(&self) -> Options
Return the same set of options, but with override_protected
set to false
.
sourcepub fn without_propagation(&self) -> Options
pub fn without_propagation(&self) -> Options
Return the same set of options, but with propagate
set to false
.
Trait Implementations§
source§impl PartialEq<Options> for Options
impl PartialEq<Options> for Options
impl Copy for Options
impl Eq for Options
impl StructuralEq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
§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.