pub struct ContextBuilder { /* private fields */ }Expand description
Build a context from the current environment and optionally provided attributes.
Implementations§
Source§impl ContextBuilder
impl ContextBuilder
Sourcepub fn with_manifest_path(self, manifest_path: impl Into<PathBuf>) -> Self
pub fn with_manifest_path(self, manifest_path: impl Into<PathBuf>) -> Self
Specify the path to the manifest file to use.
If not called, the default is to use the manifest file in the current working directory.
Trait Implementations§
Source§impl Default for ContextBuilder
impl Default for ContextBuilder
Source§fn default() -> ContextBuilder
fn default() -> ContextBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ContextBuilder
impl RefUnwindSafe for ContextBuilder
impl Send for ContextBuilder
impl Sync for ContextBuilder
impl Unpin for ContextBuilder
impl UnwindSafe for ContextBuilder
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