pub struct Execution {
pub id: String,
pub executor_id: Option<String>,
pub status: i32,
pub created_at: Option<Timestamp>,
pub started_at: Option<Timestamp>,
pub succeeded_at: Option<Timestamp>,
pub failed_at: Option<Timestamp>,
pub cancelled_at: Option<Timestamp>,
pub output_json: Option<String>,
pub failure_reason: Option<String>,
}Expand description
A job execution.
Fields§
§id: StringThe unique ID of the execution.
executor_id: Option<String>The ID of the executor handling the execution.
status: i32The status of the execution.
created_at: Option<Timestamp>The timestamp when the execution was created.
started_at: Option<Timestamp>The timestamp when the execution started.
succeeded_at: Option<Timestamp>The timestamp when the execution successfully completed.
failed_at: Option<Timestamp>The timestamp when the execution failed.
cancelled_at: Option<Timestamp>The timestamp when the execution was cancelled.
output_json: Option<String>The output or result of the execution.
failure_reason: Option<String>The error message if the execution failed or was cancelled.
Implementations§
Source§impl Execution
impl Execution
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) -> ExecutionStatus
pub fn status(&self) -> ExecutionStatus
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: ExecutionStatus)
pub fn set_status(&mut self, value: ExecutionStatus)
Sets status to the provided enum value.
Sourcepub fn output_json(&self) -> &str
pub fn output_json(&self) -> &str
Returns the value of output_json, or the default value if output_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 From<ExecutionDetails> for Execution
impl From<ExecutionDetails> for Execution
Source§fn from(value: ExecutionDetails) -> Self
fn from(value: ExecutionDetails) -> Self
Source§impl Message for Execution
impl Message for Execution
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 Execution
impl Name for Execution
Source§const NAME: &'static str = "Execution"
const NAME: &'static str = "Execution"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "ora.admin.v1"
const PACKAGE: &'static str = "ora.admin.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.impl Eq for Execution
impl StructuralPartialEq for Execution
Auto Trait Implementations§
impl Freeze for Execution
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnsafeUnpin for Execution
impl UnwindSafe for Execution
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> 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>
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>
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 moreSource§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