pub struct PostgresPolicyPlanStatus {Show 16 fields
pub phase: PlanPhase,
pub conditions: Vec<PolicyCondition>,
pub change_summary: Option<ChangeSummary>,
pub sql_ref: Option<SqlRef>,
pub sql_inline: Option<String>,
pub sql_truncated: bool,
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>,
pub sql_statements: Option<i64>,
pub redacted_sql_hash: Option<String>,
pub sql_original_bytes: Option<i64>,
pub sql_stored_bytes: Option<i64>,
}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).
sql_truncated: boolTrue when the SQL preview was truncated because the full redacted SQL could not be persisted within Kubernetes object limits.
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).
sql_statements: Option<i64>Number of SQL statements in the plan (after wildcard expansion).
May be significantly larger than changeSummary.total when wildcard
grants expand to many per-object statements.
redacted_sql_hash: Option<String>SHA-256 hash of the redacted SQL preview bytes. This is for storage
integrity only; approval and deduplication continue to use sql_hash.
sql_original_bytes: Option<i64>Uncompressed byte length of the redacted SQL preview.
sql_stored_bytes: Option<i64>Stored byte length of the SQL preview after inline/truncation/compression.
Trait Implementations§
Source§impl Clone for PostgresPolicyPlanStatus
impl Clone for PostgresPolicyPlanStatus
Source§fn clone(&self) -> PostgresPolicyPlanStatus
fn clone(&self) -> PostgresPolicyPlanStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
Source§impl JsonSchema for PostgresPolicyPlanStatus
impl JsonSchema for PostgresPolicyPlanStatus
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$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
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>
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>
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>
T in a tonic::Request