pub struct DenyConfig {
pub categories: Vec<String>,
}Expand description
Crate-level deny configuration from [deny] in .capsec.toml.
When categories are specified, any ambient authority matching those categories
is promoted to a Critical-risk deny violation — the same behavior as
#[capsec::deny(...)] on individual functions, but applied crate-wide.
Valid categories: all, fs, net, env, process, ffi.
Fields§
§categories: Vec<String>Implementations§
Source§impl DenyConfig
impl DenyConfig
Sourcepub fn normalized_categories(&self) -> Vec<String>
pub fn normalized_categories(&self) -> Vec<String>
Normalizes category names to lowercase and warns about unknown categories.
Trait Implementations§
Source§impl Debug for DenyConfig
impl Debug for DenyConfig
Source§impl Default for DenyConfig
impl Default for DenyConfig
Source§fn default() -> DenyConfig
fn default() -> DenyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DenyConfig
impl<'de> Deserialize<'de> for DenyConfig
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 DenyConfig
impl RefUnwindSafe for DenyConfig
impl Send for DenyConfig
impl Sync for DenyConfig
impl Unpin for DenyConfig
impl UnsafeUnpin for DenyConfig
impl UnwindSafe for DenyConfig
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