#[non_exhaustive]pub struct ExecutionReference {
pub name: String,
pub create_time: Option<Timestamp>,
pub completion_time: Option<Timestamp>,
pub delete_time: Option<Timestamp>,
pub completion_status: CompletionStatus,
/* private fields */
}Expand description
Reference to an Execution. Use /Executions.GetExecution with the given name to get full execution including the latest status.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName of the execution.
create_time: Option<Timestamp>Creation timestamp of the execution.
completion_time: Option<Timestamp>Creation timestamp of the execution.
delete_time: Option<Timestamp>The deletion time of the execution. It is only populated as a response to a Delete request.
completion_status: CompletionStatusStatus for the execution completion.
Implementations§
Source§impl ExecutionReference
impl ExecutionReference
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecutionReference::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecutionReference::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = ExecutionReference::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_completion_time<T>(self, v: T) -> Self
pub fn set_completion_time<T>(self, v: T) -> Self
Sets the value of completion_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecutionReference::new().set_completion_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_completion_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_completion_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of completion_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecutionReference::new().set_or_clear_completion_time(Some(Timestamp::default()/* use setters */));
let x = ExecutionReference::new().set_or_clear_completion_time(None::<Timestamp>);Sourcepub fn set_delete_time<T>(self, v: T) -> Self
pub fn set_delete_time<T>(self, v: T) -> Self
Sets the value of delete_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecutionReference::new().set_delete_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of delete_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ExecutionReference::new().set_or_clear_delete_time(Some(Timestamp::default()/* use setters */));
let x = ExecutionReference::new().set_or_clear_delete_time(None::<Timestamp>);Sourcepub fn set_completion_status<T: Into<CompletionStatus>>(self, v: T) -> Self
pub fn set_completion_status<T: Into<CompletionStatus>>(self, v: T) -> Self
Sets the value of completion_status.
§Example
ⓘ
use google_cloud_run_v2::model::execution_reference::CompletionStatus;
let x0 = ExecutionReference::new().set_completion_status(CompletionStatus::ExecutionSucceeded);
let x1 = ExecutionReference::new().set_completion_status(CompletionStatus::ExecutionFailed);
let x2 = ExecutionReference::new().set_completion_status(CompletionStatus::ExecutionRunning);Trait Implementations§
Source§impl Clone for ExecutionReference
impl Clone for ExecutionReference
Source§fn clone(&self) -> ExecutionReference
fn clone(&self) -> ExecutionReference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionReference
impl Debug for ExecutionReference
Source§impl Default for ExecutionReference
impl Default for ExecutionReference
Source§fn default() -> ExecutionReference
fn default() -> ExecutionReference
Returns the “default value” for a type. Read more
Source§impl Message for ExecutionReference
impl Message for ExecutionReference
Source§impl PartialEq for ExecutionReference
impl PartialEq for ExecutionReference
impl StructuralPartialEq for ExecutionReference
Auto Trait Implementations§
impl Freeze for ExecutionReference
impl RefUnwindSafe for ExecutionReference
impl Send for ExecutionReference
impl Sync for ExecutionReference
impl Unpin for ExecutionReference
impl UnwindSafe for ExecutionReference
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