Struct json_ld_compaction::Options
source · pub struct Options {
pub processing_mode: ProcessingMode,
pub compact_to_relative: bool,
pub compact_arrays: bool,
pub ordered: bool,
}
Expand description
Compaction options.
Fields§
§processing_mode: ProcessingMode
JSON-LD processing mode.
compact_to_relative: bool
Determines if IRIs are compacted relative to the provided base IRI or document location when compacting.
compact_arrays: bool
If set to true
, arrays with just one element are replaced with that element during compaction.
If set to false
, all arrays will remain arrays even if they have just one element.
ordered: bool
If set to true
, properties are processed by lexical order.
If false
, order is not considered in processing.
Implementations§
Trait Implementations§
impl Copy 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 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
Mutably borrows from an owned value. Read more