pub struct BuildOptions<'a> {
pub schemas_subdir: &'a str,
pub file_suffix: &'a str,
pub trait_file_suffix: &'a str,
pub manifest_dir: Option<PathBuf>,
pub out_dir: Option<PathBuf>,
}Expand description
Overrides for build_with.
Most hosts call build and leave these at BuildOptions::default.
Fields§
§schemas_subdir: &'a strSubdirectory under the manifest dir that holds schema/trait files.
file_suffix: &'a strSchema file suffix (default DEFAULT_SCHEMA_SUFFIX).
trait_file_suffix: &'a strTrait file suffix (default DEFAULT_TRAIT_SUFFIX).
manifest_dir: Option<PathBuf>Override CARGO_MANIFEST_DIR (tests and custom roots).
out_dir: Option<PathBuf>Override OUT_DIR (tests and custom roots).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BuildOptions<'a>
impl<'a> RefUnwindSafe for BuildOptions<'a>
impl<'a> Send for BuildOptions<'a>
impl<'a> Sync for BuildOptions<'a>
impl<'a> Unpin for BuildOptions<'a>
impl<'a> UnsafeUnpin for BuildOptions<'a>
impl<'a> UnwindSafe for BuildOptions<'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