pub struct GitOpsOperation {
pub finished_at: Option<String>,
pub message: Option<String>,
pub phase: Option<String>,
pub revision: Option<String>,
pub started_at: Option<String>,
}Fields§
§finished_at: Option<String>FinishedAt is when it ended, RFC 3339. Absent while the phase is Running.
message: Option<String>Message is CD’s account of the phase — "successfully synced (all tasks run)" for a Succeeded operation, the reason it stopped for a Failed one.
phase: Option<String>Phase is how the last sync operation ended, in CD’s own vocabulary: Running, Succeeded or Failed. It is never empty — an Application whose phase is empty has no operation at all and omits this whole object.
revision: Option<String>Revision is the commit this operation ATTEMPTED (operationState.syncResult). It differs from the Application’s own revision exactly when the attempt did not land: revision is the last commit CD got applied, this is the last one it tried.
started_at: Option<String>StartedAt is when the operation began, RFC 3339.
Implementations§
Source§impl GitOpsOperation
impl GitOpsOperation
pub fn new() -> GitOpsOperation
Trait Implementations§
Source§impl Clone for GitOpsOperation
impl Clone for GitOpsOperation
Source§fn clone(&self) -> GitOpsOperation
fn clone(&self) -> GitOpsOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GitOpsOperation
impl Debug for GitOpsOperation
Source§impl Default for GitOpsOperation
impl Default for GitOpsOperation
Source§fn default() -> GitOpsOperation
fn default() -> GitOpsOperation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GitOpsOperation
impl<'de> Deserialize<'de> for GitOpsOperation
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 PartialEq for GitOpsOperation
impl PartialEq for GitOpsOperation
Source§impl Serialize for GitOpsOperation
impl Serialize for GitOpsOperation
impl StructuralPartialEq for GitOpsOperation
Auto Trait Implementations§
impl Freeze for GitOpsOperation
impl RefUnwindSafe for GitOpsOperation
impl Send for GitOpsOperation
impl Sync for GitOpsOperation
impl Unpin for GitOpsOperation
impl UnsafeUnpin for GitOpsOperation
impl UnwindSafe for GitOpsOperation
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