Enum rsgen_avro::Source
source · pub enum Source<'a> {
Schema(&'a Schema),
Schemas(&'a [Schema]),
SchemaStr(&'a str),
GlobPattern(&'a str),
}
Expand description
An input source for generating Rust types.
Variants§
Schema(&'a Schema)
An Avro schema enum from the apache-avro
crate.
Schemas(&'a [Schema])
A slice of Avro schema enums from the apache-avro
crate.
SchemaStr(&'a str)
An Avro schema string in json format.
GlobPattern(&'a str)
Pattern for selecting files containing Avro schemas in json format.
Auto Trait Implementations§
impl<'a> Freeze for Source<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more