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, Error>
pub fn get_web_url(&self, branch: &dyn Branch) -> Result<Url, Error>
pub fn base_url(&self) -> Url
pub fn forge_kind(&self) -> String
pub fn forge_name(&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 supports_merge_proposal_labels(&self) -> bool
pub fn get_proposer( &self, from_branch: &dyn Branch, to_branch: &dyn Branch, ) -> Result<ProposalBuilder, Error>
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>, Error>
pub fn iter_proposals( &self, source_branch: &dyn Branch, target_branch: &dyn Branch, status: MergeProposalStatus, ) -> Result<impl Iterator<Item = MergeProposal>, Error>
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), Error>
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 Freeze for Forge
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)