pub struct SchemaBuilder { /* private fields */ }Expand description
Utility for building a Schema.
Implementations§
Source§impl SchemaBuilder
impl SchemaBuilder
pub fn build(self) -> Result<Schema, SchemaBuildError>
pub fn new() -> Self
pub fn load_file( self, file_path: impl AsRef<Path>, ) -> Result<Self, SchemaBuildError>
pub fn load_files( self, file_paths: Vec<impl AsRef<Path>>, ) -> Result<Self, SchemaBuildError>
pub fn load_str( self, file_path: Option<PathBuf>, content: &str, ) -> Result<Self, SchemaBuildError>
Trait Implementations§
Source§impl Debug for SchemaBuilder
impl Debug for SchemaBuilder
Auto Trait Implementations§
impl Freeze for SchemaBuilder
impl RefUnwindSafe for SchemaBuilder
impl Send for SchemaBuilder
impl Sync for SchemaBuilder
impl Unpin for SchemaBuilder
impl UnwindSafe for SchemaBuilder
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