pub struct Forgejo { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Host for Forgejo
impl Host for Forgejo
Source§fn pushed_at(&mut self, pr: &PrThreads, sha: &str) -> Result<Pushed, Lookup>
fn pushed_at(&mut self, pr: &PrThreads, sha: &str) -> Result<Pushed, Lookup>
Forgejo keeps no push log, so a commit’s push time is its commit time, which can only be earlier.
fn forge(&self) -> Forge
Source§fn lacks(&mut self, feature: Feature) -> Option<String>
fn lacks(&mut self, feature: Feature) -> Option<String>
Why the forge cannot do
feature, or None when it can.Source§fn fetch(&mut self, lookups: Vec<Lookup>) -> Result<FetchResult, String>
fn fetch(&mut self, lookups: Vec<Lookup>) -> Result<FetchResult, String>
The PRs the lookups name, in the order named, as
pr status
reports them before attention codes are derived.Source§fn threads(
&mut self,
target: &Target,
extra: bool,
bots: &[String],
) -> Result<Option<PrThreads>, String>
fn threads( &mut self, target: &Target, extra: bool, bots: &[String], ) -> Result<Option<PrThreads>, String>
A PR’s review threads, and with
extra its reviews and conversation
comments. None when there is no such PR.Source§fn files(
&mut self,
pr: &PrThreads,
oid: &str,
paths: &[String],
) -> Result<Vec<(String, String)>, String>
fn files( &mut self, pr: &PrThreads, oid: &str, paths: &[String], ) -> Result<Vec<(String, String)>, String>
Files at commit
oid, as (path, text); a file that cannot be read
is left out.Source§fn merge_base(&mut self, pr: &PrThreads) -> Result<String, String>
fn merge_base(&mut self, pr: &PrThreads) -> Result<String, String>
The commit the PR’s diff is taken against.
Source§fn on_branch(&mut self, pr: &PrThreads, head: &str) -> Result<bool, String>
fn on_branch(&mut self, pr: &PrThreads, head: &str) -> Result<bool, String>
Whether
head is on the PR’s branch, for a head this clone cannot
place.Auto Trait Implementations§
impl !RefUnwindSafe for Forgejo
impl !UnwindSafe for Forgejo
impl Forget for Forgejo
impl Freeze for Forgejo
impl Move for Forgejo
impl Send for Forgejo
impl Sync for Forgejo
impl Unpin for Forgejo
impl UnsafeUnpin for Forgejo
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