Struct silver_platter::Forge
source · pub struct Forge(/* private fields */);Implementations§
source§impl Forge
impl Forge
pub fn get_proposal_by_url(&self, url: &Url) -> Result<MergeProposal, PyErr>
pub fn base_url(&self) -> Url
pub fn forge_kind(&self) -> String
pub fn merge_proposal_description_format(&self) -> String
pub fn supports_merge_proposal_commit_message(&self) -> bool
pub fn supports_merge_proposal_title(&self) -> bool
pub fn get_proposer( &self, from_branch: &dyn Branch, to_branch: &dyn Branch ) -> Result<ProposalBuilder, PyErr>
pub fn iter_my_proposals( &self, status: Option<MergeProposalStatus>, author: Option<String> ) -> Result<impl Iterator<Item = MergeProposal>, Error>
pub fn get_derived_branch( &self, main_branch: &dyn Branch, name: &str, owner: Option<&str>, preferred_schemes: Option<&[&str]> ) -> Result<Box<dyn Branch>, PyErr>
pub fn iter_proposals( &self, source_branch: &dyn Branch, target_branch: &dyn Branch, status: MergeProposalStatus ) -> Result<impl Iterator<Item = MergeProposal>, PyErr>
pub fn publish_derived( &self, local_branch: &dyn Branch, main_branch: &dyn Branch, name: &str, overwrite_existing: Option<bool>, owner: Option<&str>, stop_revision: Option<&RevisionId>, tag_selector: Option<Box<dyn Fn(String) -> bool>> ) -> Result<(Box<dyn Branch>, Url), PyErr>
pub fn get_push_url(&self, branch: &dyn Branch) -> Url
Trait Implementations§
source§impl FromPyObject<'_> for Forge
impl FromPyObject<'_> for Forge
Auto Trait Implementations§
impl !RefUnwindSafe for Forge
impl Send for Forge
impl Sync for Forge
impl Unpin for Forge
impl UnwindSafe for Forge
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