pub struct ContextOverrideStatus {
pub override_id: Option<String>,
pub overall_status: ApplicationStatus,
pub error_type: Option<ApplicationErrorType>,
pub error_message: Option<String>,
pub files_applied: Vec<String>,
pub files_failed: Vec<String>,
pub env_vars_applied: Vec<String>,
pub preflight_succeeded: Option<bool>,
pub duration_ms: Option<i64>,
}Expand description
Result of applying a context override.
Fields§
§override_id: Option<String>The override ID.
overall_status: ApplicationStatusApplication status.
error_type: Option<ApplicationErrorType>Error type if failed.
error_message: Option<String>Error message if failed.
files_applied: Vec<String>Files successfully applied.
files_failed: Vec<String>Files that failed.
env_vars_applied: Vec<String>Env vars successfully applied.
preflight_succeeded: Option<bool>Whether preflight script succeeded.
duration_ms: Option<i64>Duration in milliseconds.
Implementations§
Source§impl ContextOverrideStatus
impl ContextOverrideStatus
Sourcepub fn failure(
override_id: Option<String>,
error_type: ApplicationErrorType,
message: impl Into<String>,
) -> Self
pub fn failure( override_id: Option<String>, error_type: ApplicationErrorType, message: impl Into<String>, ) -> Self
Create a failure status.
Sourcepub fn with_files_applied(self, files: Vec<String>) -> Self
pub fn with_files_applied(self, files: Vec<String>) -> Self
Mark files as applied.
Sourcepub fn with_duration(self, ms: i64) -> Self
pub fn with_duration(self, ms: i64) -> Self
Set duration.
Trait Implementations§
Source§impl Clone for ContextOverrideStatus
impl Clone for ContextOverrideStatus
Source§fn clone(&self) -> ContextOverrideStatus
fn clone(&self) -> ContextOverrideStatus
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 ContextOverrideStatus
impl Debug for ContextOverrideStatus
Source§impl Default for ContextOverrideStatus
impl Default for ContextOverrideStatus
Source§impl<'de> Deserialize<'de> for ContextOverrideStatus
impl<'de> Deserialize<'de> for ContextOverrideStatus
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
Auto Trait Implementations§
impl Freeze for ContextOverrideStatus
impl RefUnwindSafe for ContextOverrideStatus
impl Send for ContextOverrideStatus
impl Sync for ContextOverrideStatus
impl Unpin for ContextOverrideStatus
impl UnwindSafe for ContextOverrideStatus
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,
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 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>
Wrap the input message
T in a tonic::Request