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 success(override_id: Option<String>) -> ContextOverrideStatus
pub fn success(override_id: Option<String>) -> ContextOverrideStatus
Create a success status.
Sourcepub fn failure(
override_id: Option<String>,
error_type: ApplicationErrorType,
message: impl Into<String>,
) -> ContextOverrideStatus
pub fn failure( override_id: Option<String>, error_type: ApplicationErrorType, message: impl Into<String>, ) -> ContextOverrideStatus
Create a failure status.
Sourcepub fn with_files_applied(self, files: Vec<String>) -> ContextOverrideStatus
pub fn with_files_applied(self, files: Vec<String>) -> ContextOverrideStatus
Mark files as applied.
Sourcepub fn with_duration(self, ms: i64) -> ContextOverrideStatus
pub fn with_duration(self, ms: i64) -> ContextOverrideStatus
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§fn default() -> ContextOverrideStatus
fn default() -> ContextOverrideStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextOverrideStatus
impl<'de> Deserialize<'de> for ContextOverrideStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextOverrideStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContextOverrideStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ContextOverrideStatus
impl Serialize for ContextOverrideStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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