pub struct PostgresPolicyPlanStatus {
pub phase: PlanPhase,
pub conditions: Vec<PolicyCondition>,
pub change_summary: Option<ChangeSummary>,
pub sql_ref: Option<SqlRef>,
pub sql_inline: Option<String>,
pub computed_at: Option<String>,
pub applied_at: Option<String>,
pub last_error: Option<String>,
pub sql_hash: Option<String>,
pub applying_since: Option<String>,
pub failed_at: Option<String>,
}Expand description
Status of a PostgresPolicyPlan resource.
Fields§
§phase: PlanPhasePhase: Pending, Approved, Applying, Applied, Failed, Superseded.
conditions: Vec<PolicyCondition>Standard conditions: Computed, Approved, Applied.
change_summary: Option<ChangeSummary>Summary of changes in this plan.
sql_ref: Option<SqlRef>Reference to ConfigMap containing the full SQL (for large plans).
sql_inline: Option<String>Inline SQL for small plans (below a size threshold).
computed_at: Option<String>Timestamp when the plan was computed.
applied_at: Option<String>Timestamp when the plan was applied (if applicable).
last_error: Option<String>Error message if apply failed.
sql_hash: Option<String>SHA-256 hash of the planned SQL, used to detect duplicate plans. If a newly computed plan has the same hash as the current pending plan, the operator can skip creating a redundant plan.
applying_since: Option<String>Timestamp when the plan entered Applying phase (for stuck detection).
failed_at: Option<String>Timestamp when the plan entered Failed phase (for dedup window).
Trait Implementations§
Source§impl Clone for PostgresPolicyPlanStatus
impl Clone for PostgresPolicyPlanStatus
Source§fn clone(&self) -> PostgresPolicyPlanStatus
fn clone(&self) -> PostgresPolicyPlanStatus
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 PostgresPolicyPlanStatus
impl Debug for PostgresPolicyPlanStatus
Source§impl Default for PostgresPolicyPlanStatus
impl Default for PostgresPolicyPlanStatus
Source§fn default() -> PostgresPolicyPlanStatus
fn default() -> PostgresPolicyPlanStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostgresPolicyPlanStatus
impl<'de> Deserialize<'de> for PostgresPolicyPlanStatus
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 JsonSchema for PostgresPolicyPlanStatus
impl JsonSchema for PostgresPolicyPlanStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PostgresPolicyPlanStatus
impl RefUnwindSafe for PostgresPolicyPlanStatus
impl Send for PostgresPolicyPlanStatus
impl Sync for PostgresPolicyPlanStatus
impl Unpin for PostgresPolicyPlanStatus
impl UnsafeUnpin for PostgresPolicyPlanStatus
impl UnwindSafe for PostgresPolicyPlanStatus
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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::RequestSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more