pub struct TargetContext {
pub rules: Vec<(String, String)>,
}
Expand description
Structure holding the target context to reword a document to.
An instance of this struct is part of the Processor
, which can be modified to provide rules
according to which the output will be reworded.
By default, this context is empty, which will result in an output document containing only absolute IRIs.
Fields§
§rules: Vec<(String, String)>
Pairs of CURIE prefixes and their respective base IRIs.
For absolute IRIs that are about to be added to the output document, the processor will try to find a matching prefix in this list. If found, a CURIE will be used instead.
This list may also contain an entry with an empty string prefix, which then represents the default namespace of the output document.
Implementations§
Source§impl TargetContext
impl TargetContext
Trait Implementations§
Source§impl Clone for TargetContext
impl Clone for TargetContext
Source§fn clone(&self) -> TargetContext
fn clone(&self) -> TargetContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TargetContext
impl Debug for TargetContext
Source§impl Default for TargetContext
impl Default for TargetContext
Source§fn default() -> TargetContext
fn default() -> TargetContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TargetContext
impl RefUnwindSafe for TargetContext
impl Send for TargetContext
impl Sync for TargetContext
impl Unpin for TargetContext
impl UnwindSafe for TargetContext
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