#[non_exhaustive]pub struct CheckRun {
pub name: String,
pub state: String,
pub bucket: String,
pub workflow: String,
pub link: String,
pub started_at: String,
pub completed_at: String,
}Expand description
One check on a PR (gh pr checks --json …).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringCheck name.
state: StringRaw state, e.g. "SUCCESS", "FAILURE", "IN_PROGRESS".
bucket: Stringgh’s categorisation of state: one of "pass", "fail", "pending",
"skipping", "cancel" — the field to branch on.
workflow: StringWorkflow the check belongs to (empty for non-Actions checks).
link: StringWeb link to the check’s details.
started_at: StringStart timestamp (ISO 8601), empty until started.
completed_at: StringCompletion timestamp (ISO 8601), empty until completed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CheckRun
impl<'de> Deserialize<'de> for CheckRun
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 CheckRun
impl StructuralPartialEq for CheckRun
Auto Trait Implementations§
impl Freeze for CheckRun
impl RefUnwindSafe for CheckRun
impl Send for CheckRun
impl Sync for CheckRun
impl Unpin for CheckRun
impl UnsafeUnpin for CheckRun
impl UnwindSafe for CheckRun
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