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 build_from_file( file_path: impl AsRef<Path>, ) -> Result<Schema, SchemaBuildError>
pub fn build_from_ast( file_path: Option<&Path>, ast_doc: Document, ) -> Result<Schema, SchemaBuildError>
pub fn build_from_str( file_path: Option<&Path>, content: impl AsRef<str>, ) -> Result<Schema, SchemaBuildError>
pub fn from_ast( file_path: Option<&Path>, ast_doc: Document, ) -> Result<Self, SchemaBuildError>
pub fn from_file(file_path: impl AsRef<Path>) -> Result<Self, SchemaBuildError>
pub fn from_str( file_path: Option<&Path>, content: impl AsRef<str>, ) -> Result<Self, SchemaBuildError>
pub fn load_file( self, file_path: impl AsRef<Path>, ) -> Result<Self, SchemaBuildError>
pub fn load_ast( self, file_path: Option<&Path>, ast_doc: Document, ) -> 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<&Path>, content: impl AsRef<str>, ) -> Result<Self, SchemaBuildError>
pub fn new() -> Self
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