pub struct Batch {
pub version: u8,
pub recipe: Recipe,
pub name: String,
pub work: HashMap<String, Entry>,
pub basepath: PathBuf,
}Expand description
Batch
Fields§
§version: u8Format version
recipe: RecipeRecipe
name: StringBatch name
work: HashMap<String, Entry>Work to be done in this batch.
basepath: PathBufBasepath for the batch
Implementations§
Source§impl Batch
impl Batch
Sourcepub fn from_recipe<'a>(
recipe: &Recipe,
candidates: impl Iterator<Item = &'a Candidate>,
directory: &Path,
extra_env: Option<HashMap<String, String>>,
) -> Result<Batch, Error>
pub fn from_recipe<'a>( recipe: &Recipe, candidates: impl Iterator<Item = &'a Candidate>, directory: &Path, extra_env: Option<HashMap<String, String>>, ) -> Result<Batch, Error>
Create a batch from a recipe and a set of candidates.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Batch
impl<'de> Deserialize<'de> for Batch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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