pub struct LegacyGovernancePolicy {
pub scope: Option<String>,
pub action: Option<String>,
pub role: Option<String>,
pub agent_id: Option<String>,
pub decision: Option<String>,
}Expand description
A single legacy governance policy. Mirrors the documented v0.6.x field set; every field is optional so partial entries round-trip.
Fields§
§scope: Option<String>Namespace selector (glob-shaped string, e.g. team/*).
action: Option<String>Operation gated by this policy: write, delete, promote,
recall, etc. Translated 1:1 into rule.op.
role: Option<String>Role-based agent selector. When present, takes precedence over
agent_id for rule.agent_pattern.
agent_id: Option<String>Agent-id selector. Used as a fallback when role is absent.
decision: Option<String>Decision returned when the policy matches: allow, deny,
ask, etc. Forwarded verbatim to rule.decision.
Trait Implementations§
Source§impl Clone for LegacyGovernancePolicy
impl Clone for LegacyGovernancePolicy
Source§fn clone(&self) -> LegacyGovernancePolicy
fn clone(&self) -> LegacyGovernancePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LegacyGovernancePolicy
impl Debug for LegacyGovernancePolicy
Source§impl Default for LegacyGovernancePolicy
impl Default for LegacyGovernancePolicy
Source§fn default() -> LegacyGovernancePolicy
fn default() -> LegacyGovernancePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LegacyGovernancePolicy
impl<'de> Deserialize<'de> for LegacyGovernancePolicy
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 LegacyGovernancePolicy
impl RefUnwindSafe for LegacyGovernancePolicy
impl Send for LegacyGovernancePolicy
impl Sync for LegacyGovernancePolicy
impl Unpin for LegacyGovernancePolicy
impl UnsafeUnpin for LegacyGovernancePolicy
impl UnwindSafe for LegacyGovernancePolicy
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more