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<'static, String>, ) -> 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<'static, String>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn from_file( file_path: impl AsRef<Path>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn from_str( file_path: Option<&Path>, content: impl AsRef<str>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn load_file( self, file_path: impl AsRef<Path>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn load_ast( self, file_path: Option<&Path>, ast_doc: Document<'static, String>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn load_files( self, file_paths: Vec<impl AsRef<Path>>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn load_str( self, file_path: Option<&Path>, content: impl AsRef<str>, ) -> Result<SchemaBuilder, SchemaBuildError>
pub fn new() -> SchemaBuilder
Trait Implementations§
Source§impl Debug for SchemaBuilder
impl Debug for SchemaBuilder
Source§impl Default for SchemaBuilder
impl Default for SchemaBuilder
Source§fn default() -> SchemaBuilder
fn default() -> SchemaBuilder
Returns the “default value” for a type. Read more
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