pub struct JobExecution {
pub id: String,
pub job_id: String,
pub executor_id: Option<String>,
pub status: i32,
pub created_at: Option<Timestamp>,
pub ready_at: Option<Timestamp>,
pub assigned_at: Option<Timestamp>,
pub started_at: Option<Timestamp>,
pub succeeded_at: Option<Timestamp>,
pub failed_at: Option<Timestamp>,
pub output_payload_json: Option<String>,
pub failure_reason: Option<String>,
}
Fields§
§id: String
The ID of the job execution.
job_id: String
The ID of the job.
executor_id: Option<String>
The ID of the associated executor.
status: i32
The status of the job execution.
created_at: Option<Timestamp>
The time the job execution was created.
ready_at: Option<Timestamp>
The time the job execution was marked as ready.
assigned_at: Option<Timestamp>
The time the job execution was assigned to an executor.
started_at: Option<Timestamp>
The time the job execution has started.
succeeded_at: Option<Timestamp>
The time the job execution has succeeded.
failed_at: Option<Timestamp>
The time the job execution has failed.
output_payload_json: Option<String>
The output payload of the execution.
failure_reason: Option<String>
The error message of the execution.
Implementations§
Source§impl JobExecution
impl JobExecution
Sourcepub fn executor_id(&self) -> &str
pub fn executor_id(&self) -> &str
Returns the value of executor_id
, or the default value if executor_id
is unset.
Sourcepub fn status(&self) -> JobExecutionStatus
pub fn status(&self) -> JobExecutionStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: JobExecutionStatus)
pub fn set_status(&mut self, value: JobExecutionStatus)
Sets status
to the provided enum value.
Sourcepub fn output_payload_json(&self) -> &str
pub fn output_payload_json(&self) -> &str
Returns the value of output_payload_json
, or the default value if output_payload_json
is unset.
Sourcepub fn failure_reason(&self) -> &str
pub fn failure_reason(&self) -> &str
Returns the value of failure_reason
, or the default value if failure_reason
is unset.
Trait Implementations§
Source§impl Clone for JobExecution
impl Clone for JobExecution
Source§fn clone(&self) -> JobExecution
fn clone(&self) -> JobExecution
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for JobExecution
impl Debug for JobExecution
Source§impl Default for JobExecution
impl Default for JobExecution
Source§impl Message for JobExecution
impl Message for JobExecution
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl Name for JobExecution
impl Name for JobExecution
Source§const NAME: &'static str = "JobExecution"
const NAME: &'static str = "JobExecution"
Message
.
This name is the same as it appears in the source .proto file, e.g. FooBar
.Source§const PACKAGE: &'static str = "ora.server.v1"
const PACKAGE: &'static str = "ora.server.v1"
.
, e.g. google.protobuf
.Source§fn full_name() -> String
fn full_name() -> String
Message
.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation
.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.Source§impl PartialEq for JobExecution
impl PartialEq for JobExecution
impl StructuralPartialEq for JobExecution
Auto Trait Implementations§
impl Freeze for JobExecution
impl RefUnwindSafe for JobExecution
impl Send for JobExecution
impl Sync for JobExecution
impl Unpin for JobExecution
impl UnwindSafe for JobExecution
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request