pub struct PrState {
pub url: String,
pub number: u64,
pub state: PrLifecycle,
pub checks: Checks,
pub failing: Vec<String>,
pub review_comments: Vec<ReviewComment>,
pub blocking: Blocking,
}Expand description
One observation of a pull request.
Fields§
§url: StringPull request url, as gh reports it.
number: u64Pull request number.
state: PrLifecycleOpen, merged, or closed.
checks: ChecksAggregate check verdict.
failing: Vec<String>Names of the checks that finished without passing.
review_comments: Vec<ReviewComment>Comments that still want an answer, human and bot.
blocking: BlockingWhether the forge itself considers the failures blocking.
Trait Implementations§
impl Eq for PrState
impl StructuralPartialEq for PrState
Auto Trait Implementations§
impl Forget for PrState
impl Freeze for PrStatewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ReviewComment>: Freeze,
impl Move for PrState
impl RefUnwindSafe for PrState
impl Send for PrStatewhere
RawVecInner: Send,
impl Sync for PrStatewhere
RawVecInner: Sync,
impl Unpin for PrState
impl UnsafeUnpin for PrStatewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ReviewComment>: UnsafeUnpin,
impl UnwindSafe for PrStatewhere
RawVecInner: UnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more