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
impl<'a> RefUnwindSafe for Source<'a>
impl<'a> Send for Source<'a>
impl<'a> Sync for Source<'a>
impl<'a> Unpin for Source<'a>
impl<'a> UnwindSafe for Source<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more