pub struct ResolvedPolicy {
pub storage: StoragePolicy,
pub path: PathBuf,
pub max_entries: usize,
pub tool_io: ToolIoPolicy,
pub tool_io_truncate_bytes: usize,
pub tool_io_denylist: Vec<String>,
}Expand description
Resolved policy bundle the writer + tool-io capturers read at runtime.
Fields§
§storage: StoragePolicy§path: PathBuf§max_entries: usize§tool_io: ToolIoPolicy§tool_io_truncate_bytes: usize§tool_io_denylist: Vec<String>Implementations§
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 · Source§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