Struct ResolvedPolicy
pub struct ResolvedPolicy {
pub storage: StoragePolicy,
pub path: PathBuf,
pub max_entries: usize,
pub max_bytes: u64,
pub rotate_daily: bool,
pub retention_max_files: usize,
pub retention_max_age_days: u64,
pub tool_io: ToolIoPolicy,
pub tool_io_truncate_bytes: usize,
pub tool_io_denylist: Vec<String>,
pub llm_request_payload: LlmRequestPayloadPolicy,
}Expand description
Resolved policy bundle the writer + tool-io capturers read at runtime.
Fields§
§storage: StoragePolicy§path: PathBuf§max_entries: usize§max_bytes: u64Size threshold (bytes) that triggers a rotation in Rotating mode.
0 disables size-based rotation.
rotate_daily: boolRotate on a UTC day boundary in Rotating mode.
retention_max_files: usizeMax rotated archive files to keep in Rotating mode. 0 keeps all.
retention_max_age_days: u64Max age (days) of rotated archives in Rotating mode. 0 disables.
tool_io: ToolIoPolicy§tool_io_truncate_bytes: usize§tool_io_denylist: Vec<String>§llm_request_payload: LlmRequestPayloadPolicyImplementations§
Source§impl ResolvedPolicy
impl ResolvedPolicy
pub fn from_config(config: &LogConfig, workspace_dir: &Path) -> Self
pub fn is_tool_denylisted(&self, tool: &str) -> bool
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) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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