Enum rsgen_avro::Source

source ·
pub enum Source<'a> {
    Schema(&'a Schema),
    SchemaStr(&'a str),
    FilePath(&'a str),
    DirPath(&'a str),
}
Expand description

Represents a schema input source.

Variants

Schema(&'a Schema)

An Avro schema enum from avro-rs crate.

SchemaStr(&'a str)

An Avro schema string in json format.

FilePath(&'a str)

Path to a file containing an Avro schema in json format.

DirPath(&'a str)

Path to a directory containing multiple files in Avro schema.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.