pub struct UpdateContext {
pub config: ParsedManifest,
pub manifest_dir: PathBuf,
}Expand description
Context passed to block handlers (parsed Cargo.toml).
Fields§
§config: ParsedManifest§manifest_dir: PathBufCrate root directory for resolving relative paths (e.g. in file block).
Implementations§
Source§impl UpdateContext
impl UpdateContext
pub fn new(config: ParsedManifest, manifest_dir: PathBuf) -> Self
Trait Implementations§
Source§impl Clone for UpdateContext
impl Clone for UpdateContext
Source§fn clone(&self) -> UpdateContext
fn clone(&self) -> UpdateContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UpdateContext
impl RefUnwindSafe for UpdateContext
impl Send for UpdateContext
impl Sync for UpdateContext
impl Unpin for UpdateContext
impl UnsafeUnpin for UpdateContext
impl UnwindSafe for UpdateContext
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