Struct silver_platter::Forge
source · pub struct Forge(_);Implementations§
source§impl Forge
impl Forge
pub fn new(obj: Py<PyAny>) -> Forge
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: &Branch, to_branch: &Branch ) -> Result<ProposalBuilder, PyErr>
pub fn get_derived_branch( &self, main_branch: &Branch, name: &str, owner: Option<&str>, preferred_schemes: Option<&[&str]> ) -> Result<Branch, PyErr>
pub fn iter_proposals( &self, source_branch: &Branch, target_branch: &Branch, status: MergeProposalStatus ) -> Result<impl Iterator<Item = MergeProposal>, PyErr>
pub fn publish_derived( &self, local_branch: &Branch, main_branch: &Branch, name: &str, overwrite_existing: Option<bool>, owner: Option<&str>, stop_revision: Option<&RevisionId>, tag_selector: Option<Box<dyn Fn(String) -> bool, Global>> ) -> Result<(Branch, Url), PyErr>
pub fn get_push_url(&self, branch: &Branch) -> Url
Trait Implementations§
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
source§impl<T> ToBorrowedObject for Twhere
T: ToPyObject,
impl<T> ToBorrowedObject for Twhere T: ToPyObject,
source§fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
F: FnOnce(*mut PyObject) -> R,
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere F: FnOnce(*mut PyObject) -> R,
👎Deprecated since 0.17.0: this trait is no longer used by PyO3, use ToPyObject or IntoPy<PyObject>
Converts self into a Python object and calls the specified closure
on the native FFI pointer underlying the Python object. Read more