pub struct Options {
pub processing_mode: ProcessingMode,
pub policy: Policy,
pub ordered: bool,
}Expand description
Expansion options.
Fields§
§processing_mode: ProcessingModeJSON-LD version the algorithm conforms to.
Defaults to json-ld-1.1. Under json-ld-1.0 some 1.1 features are
ignored, such as @included and @direction entries, and others are
rejected, such as a list object among the items of another list object.
The mode also applies to the processing of the contexts met on the way.
policy: PolicyWhat to do with the keys that cannot be expanded into a proper IRI.
Defaults to Policy::default(), the behaviour the specification
prescribes.
ordered: boolWhether the entries of every JSON object are processed in lexicographic order of their keys.
Ordering costs a sort per object and only matters when the expanded
output has to be reproducible entry by entry, as in the JSON-LD test
suite. false by default, which leaves entries in document order.
Implementations§
Trait Implementations§
impl Copy for Options
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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
Source§impl<T> BorrowUnordered for T
impl<T> BorrowUnordered for T
Source§fn as_unordered(&self) -> &Unordered<T>
fn as_unordered(&self) -> &Unordered<T>
Unordered reference.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
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
key and return true if they are equal.