pub struct PipelineStatus {
pub id: u64,
pub ref_name: String,
pub status: PipelineStatusEnum,
pub conclusion: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub url: String,
}Expand description
流水线状态数据。
由平台实现填充并返回给上层命令。字段命名与平台 API 输出 的 JSON 字段对齐(camelCase)。
Fields§
§id: u64流水线编号(平台内唯一)。
ref_name: String触发流水线的分支或标签名。
status: PipelineStatusEnum流水线当前状态。
conclusion: Option<String>流水线结论(成功/失败原因等,可选)。
created_at: Option<DateTime<Utc>>创建时间(UTC)。API 未返回该字段时为 None——绝不用当前时间伪造。
updated_at: Option<DateTime<Utc>>最近更新时间(UTC)。API 未返回该字段时为 None——绝不用当前时间伪造。
url: String流水线的 Web URL。
Trait Implementations§
Source§impl Clone for PipelineStatus
impl Clone for PipelineStatus
Source§impl Debug for PipelineStatus
impl Debug for PipelineStatus
Source§impl<'de> Deserialize<'de> for PipelineStatus
impl<'de> Deserialize<'de> for PipelineStatus
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
Auto Trait Implementations§
impl Forget for PipelineStatus
impl Freeze for PipelineStatus
impl Move for PipelineStatus
impl RefUnwindSafe for PipelineStatus
impl Send for PipelineStatus
impl Sync for PipelineStatus
impl Unpin for PipelineStatus
impl UnsafeUnpin for PipelineStatus
impl UnwindSafe for PipelineStatus
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<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