Struct DeletePlanResponse
pub struct DeletePlanResponse {
pub path: String,
pub key: String,
pub allowed: bool,
pub blockers: Vec<RefSiteDto>,
pub scrubs: Vec<RefSiteDto>,
pub live_acp_sessions: Option<usize>,
pub cascades_owned_state: bool,
}Expand description
Dry-run impact of deleting an aliased entry — the cascade preview a surface
renders before confirming. Pure/read-only: computed from plan_delete (the
same reference walk the real delete uses) plus the live-ACP gate for agents.
Fields§
§path: String§key: String§allowed: boolTrue iff nothing HARD blocks the delete (no hard config reference and, for agents, no live ACP session). Mirrors the real delete’s refusal gate.
blockers: Vec<RefSiteDto>HARD references that block the delete — the operator must change these
first (e.g. an enabled heartbeat.agent).
scrubs: Vec<RefSiteDto>SOFT references the delete would scrub automatically.
live_acp_sessions: Option<usize>Agent delete only: number of live ACP sessions (a non-zero count blocks
the delete; null for non-agent sections or if the count couldn’t be
read — in which case the delete fails closed too).
cascades_owned_state: boolAgent delete only: the agent’s owned non-config state (memory / cron / session history) is exported and removed on delete. Counts are not enumerated in the preview.
Trait Implementations§
Source§impl Debug for DeletePlanResponse
impl Debug for DeletePlanResponse
Source§impl JsonSchema for DeletePlanResponse
impl JsonSchema for DeletePlanResponse
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 moreSource§impl Serialize for DeletePlanResponse
impl Serialize for DeletePlanResponse
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,
Auto Trait Implementations§
impl Freeze for DeletePlanResponse
impl RefUnwindSafe for DeletePlanResponse
impl Send for DeletePlanResponse
impl Sync for DeletePlanResponse
impl Unpin for DeletePlanResponse
impl UnsafeUnpin for DeletePlanResponse
impl UnwindSafe for DeletePlanResponse
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more