Skip to main content

Args

Struct Args 

Source
pub struct Args {
Show 14 fields pub file_a: Option<PathBuf>, pub file_b: Option<PathBuf>, pub format_a: Option<InputFormat>, pub format_b: Option<InputFormat>, pub output: Option<PathBuf>, pub output_format: OutputFormat, pub graph_a: Option<String>, pub graph_b: Option<String>, pub quiet: bool, pub ci: bool, pub view: bool, pub no_open: bool, pub bind: String, pub ignore_blank_nodes: bool,
}
Expand description

Compare two RDF files and emit the diff as a quad dataset with two named graphs.

Fields§

§file_a: Option<PathBuf>

First (left) RDF file.

§file_b: Option<PathBuf>

Second (right) RDF file.

§format_a: Option<InputFormat>

Override input format for file A (auto-detected from extension by default).

§format_b: Option<InputFormat>

Override input format for file B (auto-detected from extension by default).

§output: Option<PathBuf>

Output file (defaults to stdout).

§output_format: OutputFormat

Output serialization.

§graph_a: Option<String>

Override the named-graph IRI for triples only in file A.

§graph_b: Option<String>

Override the named-graph IRI for triples only in file B.

§quiet: bool

Suppress the summary line on stderr.

§ci: bool

Exit with code 1 if any differences are found (useful in CI).

§view: bool

Open the diff in the local web viewer after computing it.

§no_open: bool

Do not auto-open the system browser when starting the viewer.

§bind: String

Bind address for the web viewer.

§ignore_blank_nodes: bool

Skip blank-node-bearing triples instead of canonicalising them. By default, when blank nodes are present, the W3C RDFC-1.0 algorithm is used to assign stable labels before diffing.

Trait Implementations§

Source§

impl Args for Args

Source§

fn group_id() -> Option<Id>

Report the [ArgGroup::id][crate::ArgGroup::id] for this set of arguments
Source§

fn augment_args<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate Self via [FromArgMatches::from_arg_matches_mut] Read more
Source§

fn augment_args_for_update<'b>(__clap_app: Command) -> Command

Append to [Command] so it can instantiate self via [FromArgMatches::update_from_arg_matches_mut] Read more
Source§

impl Debug for Args

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Args

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from [ArgMatches], parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.

Auto Trait Implementations§

§

impl Freeze for Args

§

impl RefUnwindSafe for Args

§

impl Send for Args

§

impl Sync for Args

§

impl Unpin for Args

§

impl UnsafeUnpin for Args

§

impl UnwindSafe for Args

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,