pub struct CiV1 {
pub provider: String,
pub project: Option<u64>,
pub repo: Option<String>,
pub pipeline_id: Option<String>,
pub commit: Option<String>,
pub status: Option<String>,
pub required_jobs: Vec<String>,
pub jobs: Vec<CiJobV1>,
pub reason: Option<String>,
}Expand description
gate_record.ci (§5.1, gate-record.schema.json#/$defs/ci) in its
three forms: a pipeline, no pipeline yet (status: missing), or no CI
(provider: none). Response type: unknown fields are accepted.
Fields§
§provider: String§project: Option<u64>§repo: Option<String>§pipeline_id: Option<String>§commit: Option<String>§status: Option<String>§required_jobs: Vec<String>§jobs: Vec<CiJobV1>§reason: Option<String>Implementations§
Source§impl CiV1
impl CiV1
Sourcepub fn green_for(&self, artifact: &str) -> Result<(), String>
pub fn green_for(&self, artifact: &str) -> Result<(), String>
Whether this CI part lets a pass through for artifact: no CI by
the repo’s declaration (with a reason), or a successful pipeline for
exactly artifact with every required job present and successful
(ci_commit, ci_required_jobs; project 37 always requires
test-pg).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CiV1
impl<'de> Deserialize<'de> for CiV1
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 CiV1
impl StructuralPartialEq for CiV1
Auto Trait Implementations§
impl Forget for CiV1
impl Freeze for CiV1where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<CiJobV1>: Freeze,
impl Move for CiV1
impl RefUnwindSafe for CiV1
impl Send for CiV1where
RawVecInner: Send,
impl Sync for CiV1where
RawVecInner: Sync,
impl Unpin for CiV1
impl UnsafeUnpin for CiV1where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<CiJobV1>: UnsafeUnpin,
impl UnwindSafe for CiV1where
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