pub struct Processor {
pub context: Context,
pub target: TargetContext,
}
Expand description
A document processor.
This structure holds configuration for processing documents. The defaults are fine if the
output document should contain only absolute IRIs, but usually you want to set some namespaces
for the output document in the TargetContext
contained within.
Fields§
§context: Context
External context added to the document. Defaults to an empty context, so only inline contexts in the document itself are used.
target: TargetContext
Target context to reword the document to. Defaults to an empty context, so the result will contain only absolute IRIs for all properties and types.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Processor
impl RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnwindSafe for Processor
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