pub struct DerivationContext {
pub branch_name: Option<String>,
pub spec_path: Option<PathBuf>,
pub env_vars: HashMap<String, String>,
pub git_user_name: Option<String>,
pub git_user_email: Option<String>,
}Expand description
Context containing all available data sources for derivation
Fields§
§branch_name: Option<String>Current git branch name
spec_path: Option<PathBuf>Spec file path
env_vars: HashMap<String, String>Environment variables available for extraction
git_user_name: Option<String>Git user.name from config
git_user_email: Option<String>Git user.email from config
Implementations§
Trait Implementations§
Source§impl Clone for DerivationContext
impl Clone for DerivationContext
Source§fn clone(&self) -> DerivationContext
fn clone(&self) -> DerivationContext
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 moreSource§impl Debug for DerivationContext
impl Debug for DerivationContext
Auto Trait Implementations§
impl Freeze for DerivationContext
impl RefUnwindSafe for DerivationContext
impl Send for DerivationContext
impl Sync for DerivationContext
impl Unpin for DerivationContext
impl UnwindSafe for DerivationContext
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