pub struct BlockerSnapshot {
pub issue_state: String,
pub state_reason: Option<String>,
pub has_pr: bool,
pub pr_merged: bool,
pub pr_merged_into_default: bool,
pub pr_approved: bool,
pub pr_closed: bool,
}Expand description
What orch last read about one blocking issue.
Missing JSON fails closed: the dependency stays open
Fields§
§issue_state: String§state_reason: Option<String>§has_pr: bool§pr_merged: bool§pr_merged_into_default: bool§pr_approved: bool§pr_closed: boolImplementations§
Source§impl BlockerSnapshot
impl BlockerSnapshot
pub fn observe( issue_state: &str, state_reason: Option<&str>, pr: Option<&ObservedPullRequest>, ) -> Self
Sourcepub fn note_issue_state(
&mut self,
issue_state: &str,
state_reason: Option<&str>,
)
pub fn note_issue_state( &mut self, issue_state: &str, state_reason: Option<&str>, )
Record a new issue state without clearing pull request fields.
A later issue sync must not wipe a snapshot that already knows the PR
pub fn is_satisfied(&self) -> bool
Trait Implementations§
Source§impl Clone for BlockerSnapshot
impl Clone for BlockerSnapshot
Source§impl Debug for BlockerSnapshot
impl Debug for BlockerSnapshot
Source§impl<'de> Deserialize<'de> for BlockerSnapshot
impl<'de> Deserialize<'de> for BlockerSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BlockerSnapshot
Source§impl PartialEq for BlockerSnapshot
impl PartialEq for BlockerSnapshot
Source§impl Serialize for BlockerSnapshot
impl Serialize for BlockerSnapshot
impl StructuralPartialEq for BlockerSnapshot
Auto Trait Implementations§
impl Freeze for BlockerSnapshot
impl RefUnwindSafe for BlockerSnapshot
impl Send for BlockerSnapshot
impl Sync for BlockerSnapshot
impl Unpin for BlockerSnapshot
impl UnsafeUnpin for BlockerSnapshot
impl UnwindSafe for BlockerSnapshot
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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