Struct rustdoc_json::BuildOptions
source · [−]pub struct BuildOptions { /* private fields */ }
Expand description
Contains all options for crate::build()
.
See crate for an example on how to use it.
Implementations
sourceimpl BuildOptions
impl BuildOptions
sourcepub fn toolchain(self, toolchain: impl AsRef<OsStr>) -> Self
pub fn toolchain(self, toolchain: impl AsRef<OsStr>) -> Self
Set the toolchain. Default: None
, which in practice means "+stable"
.
Until rustdoc JSON has stabilized, you will want to set this to
"+nightly"
or similar.
sourcepub fn manifest_path(self, manifest_path: impl AsRef<Path>) -> Self
pub fn manifest_path(self, manifest_path: impl AsRef<Path>) -> Self
Set the relative or absolute path to Cargo.toml
. Default: Cargo.toml
Trait Implementations
sourceimpl Debug for BuildOptions
impl Debug for BuildOptions
Auto Trait Implementations
impl RefUnwindSafe for BuildOptions
impl Send for BuildOptions
impl Sync for BuildOptions
impl Unpin for BuildOptions
impl UnwindSafe for BuildOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more