pub struct ContextRules {
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>,
}Expand description
The [context] section of a pack. All fields optional — only what a pack
states is constrained; everything else stays at engine defaults.
Fields§
§default_read_mode: Option<String>Default ctx_read mode the policy expects (see KNOWN_READ_MODES).
allow_tools: Option<Vec<String>>Allowlist of tool names; when set, only these may be called.
deny_tools: Vec<String>Denylist of tool names; always additive down the extends chain.
max_context_tokens: Option<u32>Upper bound on tokens a single context assembly may spend.
audit_retention_days: Option<u32>Audit-retention expectation in days (governance intent; the hosted plane enforces its own plan window — see org-audit-log-v1).
Trait Implementations§
Source§impl Clone for ContextRules
impl Clone for ContextRules
Source§fn clone(&self) -> ContextRules
fn clone(&self) -> ContextRules
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 ContextRules
impl Debug for ContextRules
Source§impl Default for ContextRules
impl Default for ContextRules
Source§fn default() -> ContextRules
fn default() -> ContextRules
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextRules
impl<'de> Deserialize<'de> for ContextRules
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 ContextRules
impl RefUnwindSafe for ContextRules
impl Send for ContextRules
impl Sync for ContextRules
impl Unpin for ContextRules
impl UnsafeUnpin for ContextRules
impl UnwindSafe for ContextRules
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<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