pub struct ProcessTermination {
pub exit_code: i32,
pub finished_at: Option<DateTime<Utc>>,
pub message: Option<String>,
pub reason: Option<String>,
pub signal: Option<i32>,
pub started_at: Option<DateTime<Utc>>,
}Expand description
How the pipeline process ended (Kubernetes ContainerStateTerminated).
JSON schema
{
"description": "How the pipeline process ended (Kubernetes `ContainerStateTerminated`).",
"type": "object",
"required": [
"exit_code"
],
"properties": {
"exit_code": {
"type": "integer",
"format": "int32"
},
"finished_at": {
"description": "Identifies one termination: the same termination keeps the same time.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"message": {
"type": [
"string",
"null"
]
},
"reason": {
"description": "Machine-readable cause, for example `OOMKilled`, `Error` or `Completed`.",
"type": [
"string",
"null"
]
},
"signal": {
"description": "Absent when the platform does not report it.",
"type": [
"integer",
"null"
],
"format": "int32"
},
"started_at": {
"type": [
"string",
"null"
],
"format": "date-time"
}
}
}Fields§
§exit_code: i32§finished_at: Option<DateTime<Utc>>Identifies one termination: the same termination keeps the same time.
message: Option<String>§reason: Option<String>Machine-readable cause, for example OOMKilled, Error or Completed.
signal: Option<i32>Absent when the platform does not report it.
started_at: Option<DateTime<Utc>>Implementations§
Source§impl ProcessTermination
impl ProcessTermination
pub fn builder() -> ProcessTermination
Trait Implementations§
Source§impl Clone for ProcessTermination
impl Clone for ProcessTermination
Source§impl Debug for ProcessTermination
impl Debug for ProcessTermination
Source§impl<'de> Deserialize<'de> for ProcessTermination
impl<'de> Deserialize<'de> for ProcessTermination
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
Source§impl From<&ProcessTermination> for ProcessTermination
impl From<&ProcessTermination> for ProcessTermination
Source§fn from(value: &ProcessTermination) -> Self
fn from(value: &ProcessTermination) -> Self
Converts to this type from the input type.
Source§impl From<ProcessTermination> for ProcessTermination
impl From<ProcessTermination> for ProcessTermination
Source§fn from(value: ProcessTermination) -> Self
fn from(value: ProcessTermination) -> Self
Converts to this type from the input type.
Source§impl Serialize for ProcessTermination
impl Serialize for ProcessTermination
Source§impl TryFrom<ProcessTermination> for ProcessTermination
impl TryFrom<ProcessTermination> for ProcessTermination
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ProcessTermination) -> Result<Self, ConversionError>
fn try_from(value: ProcessTermination) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ProcessTermination
impl Freeze for ProcessTermination
impl Move for ProcessTermination
impl RefUnwindSafe for ProcessTermination
impl Send for ProcessTermination
impl Sync for ProcessTermination
impl Unpin for ProcessTermination
impl UnsafeUnpin for ProcessTermination
impl UnwindSafe for ProcessTermination
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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