[][src]Enum ipld_schema::Command

pub enum Command {
    Validate {
        schema_file: PathBuf,
        data_file: Option<PathBuf>,
    },
    Generate {
        seed: Option<Seed>,
        schema_file: Option<PathBuf>,
    },
}

Variants

Validate

Validate IPLD schemas and data

Fields of Validate

schema_file: PathBuf

Path to IPLD schema file to validate.

data_file: Option<PathBuf>

Path to IPLD data file to validate against the specified schema.

Generate

Generate IPLD schemas and data

Fields of Generate

seed: Option<Seed>

Explicitly seed the PRNG for deterministic output.

If unspecified, a random seed is used.

schema_file: Option<PathBuf>

Path to IPLD schema file to use when generating data.

If unspecified, generates a schema instead of data.

Trait Implementations

impl Debug for Command[src]

impl StructOpt for Command[src]

impl StructOptInternal for Command[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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