pub struct Entry {
pub subpath: Option<PathBuf>,
pub target_branch_url: Option<Url>,
pub description: String,
pub commit_message: Option<String>,
pub auto_merge: Option<bool>,
pub mode: Mode,
pub title: Option<String>,
pub owner: Option<String>,
pub labels: Option<Vec<String>>,
pub context: Value,
pub proposal_url: Option<Url>,
/* private fields */
}Expand description
Batch entry
Fields§
§subpath: Option<PathBuf>Subpath within the local path to work on.
target_branch_url: Option<Url>URL of the target branch.
description: StringDescription of the work to be done.
commit_message: Option<String>Commit message for the work.
auto_merge: Option<bool>Whether to automatically merge the proposal.
mode: ModeMode for the work.
title: Option<String>Title of the work.
owner: Option<String>Owner of the work.
labels: Option<Vec<String>>Labels for the work.
context: ValueContext for the work.
proposal_url: Option<Url>URL of the proposal for this work.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn from_recipe(
recipe: &Recipe,
basepath: &Path,
url: &Url,
subpath: &Path,
default_mode: Option<Mode>,
extra_env: Option<HashMap<String, String>>,
) -> Result<Self, Error>
pub fn from_recipe( recipe: &Recipe, basepath: &Path, url: &Url, subpath: &Path, default_mode: Option<Mode>, extra_env: Option<HashMap<String, String>>, ) -> Result<Self, Error>
Create a new batch entry from a recipe.
Sourcepub fn working_tree(&self) -> Result<Box<dyn WorkingTree>, BrzError>
pub fn working_tree(&self) -> Result<Box<dyn WorkingTree>, BrzError>
Get the local working tree for this entry.
Sourcepub fn target_branch(&self) -> Result<GenericBranch, BranchOpenError>
pub fn target_branch(&self) -> Result<GenericBranch, BranchOpenError>
Get the target branch for this entry.
Sourcepub fn local_branch(&self) -> Result<GenericBranch, BranchOpenError>
pub fn local_branch(&self) -> Result<GenericBranch, BranchOpenError>
Get the local branch for this entry.
Sourcepub fn refresh(
&mut self,
recipe: &Recipe,
extra_env: Option<HashMap<String, String>>,
) -> Result<(), Error>
pub fn refresh( &mut self, recipe: &Recipe, extra_env: Option<HashMap<String, String>>, ) -> Result<(), Error>
Refresh the changes for this entry.
Sourcepub fn publish(
&mut self,
batch_name: &str,
refresh: bool,
overwrite: Option<bool>,
) -> Result<PublishResult, PublishError>
pub fn publish( &mut self, batch_name: &str, refresh: bool, overwrite: Option<bool>, ) -> Result<PublishResult, PublishError>
Publish this entry
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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