pub struct ResolvedPolicy {Show 14 fields
pub name: String,
pub version: String,
pub description: String,
pub chain: Vec<String>,
pub default_read_mode: Option<String>,
pub allow_tools: Option<Vec<String>>,
pub deny_tools: Vec<String>,
pub max_context_tokens: Option<u32>,
pub audit_retention_days: Option<u32>,
pub redaction: BTreeMap<String, String>,
pub filters: FilterRules,
pub egress: EgressRules,
pub routing: RoutingPolicyRules,
pub budgets: BudgetRules,
}Expand description
A pack with its full extends chain folded in — what enforcement and
policy show consume.
Fields§
§name: String§version: String§description: String§chain: Vec<String>Inheritance chain, base-most first (["baseline", "strict-redaction"]
for a pack extending strict-redaction). Empty for root packs.
default_read_mode: Option<String>§allow_tools: Option<Vec<String>>§deny_tools: Vec<String>§max_context_tokens: Option<u32>§audit_retention_days: Option<u32>§redaction: BTreeMap<String, String>§filters: FilterRulesFolded inbound-filter actions + label set (GL #675).
egress: EgressRulesFolded egress/output DLP rules (GL #676).
routing: RoutingPolicyRulesFolded gateway routing governance (enterprise#25).
budgets: BudgetRulesFolded org spend caps (enterprise#25).
Trait Implementations§
Source§impl Clone for ResolvedPolicy
impl Clone for ResolvedPolicy
Source§fn clone(&self) -> ResolvedPolicy
fn clone(&self) -> ResolvedPolicy
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 ResolvedPolicy
impl Debug for ResolvedPolicy
Auto Trait Implementations§
impl Freeze for ResolvedPolicy
impl RefUnwindSafe for ResolvedPolicy
impl Send for ResolvedPolicy
impl Sync for ResolvedPolicy
impl Unpin for ResolvedPolicy
impl UnsafeUnpin for ResolvedPolicy
impl UnwindSafe for ResolvedPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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