Struct json_ns::Processor[][src]

pub struct Processor {
    pub context: Context,
    pub target: TargetContext,
}

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

External context added to the document. Defaults to an empty context, so only inline contexts in the document itself are used.

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.

Methods

impl Processor
[src]

Alias for Processor::default().

A short-hand for adding a rule to the contained TargetContext.

Process a value, using the configuration in this struct.

Process an object, using the configuration in this struct.

Trait Implementations

impl Clone for Processor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Processor
[src]

Formats the value using the given formatter. Read more

impl Default for Processor
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Processor

impl Sync for Processor