pub struct SchemaBuilder<'a> {
pub instruction_path: &'a str,
pub output_dir: &'a str,
}Fields§
§instruction_path: &'a str§output_dir: &'a strImplementations§
Source§impl<'a> SchemaBuilder<'a>
impl<'a> SchemaBuilder<'a>
pub fn builder() -> SchemaBuilder<'a>
pub fn with_instruction_path(self, path: &'a str) -> Self
pub fn with_output_dir(self, output_dir: &'a str) -> Self
pub fn build(&self)
pub fn write_to_file<P: ?Sized + AsRef<Path>>( &self, output_path: &P, content: &String, ) -> Result<()>
Auto Trait Implementations§
impl<'a> Freeze for SchemaBuilder<'a>
impl<'a> RefUnwindSafe for SchemaBuilder<'a>
impl<'a> Send for SchemaBuilder<'a>
impl<'a> Sync for SchemaBuilder<'a>
impl<'a> Unpin for SchemaBuilder<'a>
impl<'a> UnwindSafe for SchemaBuilder<'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