pub struct AllowEntry {
pub crate_name: Option<String>,
pub crate_key: Option<String>,
pub function: Option<String>,
}Expand description
A suppression rule from [[allow]] in .capsec.toml.
At least one of crate/crate_name or function must be set for the rule
to match anything. Both crate and crate_name keys are supported for ergonomics.
Fields§
§crate_name: Option<String>§crate_key: Option<String>§function: Option<String>Implementations§
Source§impl AllowEntry
impl AllowEntry
Sourcepub fn effective_crate(&self) -> Option<&str>
pub fn effective_crate(&self) -> Option<&str>
Returns the crate name from either crate or crate_name key.
Trait Implementations§
Source§impl Debug for AllowEntry
impl Debug for AllowEntry
Source§impl<'de> Deserialize<'de> for AllowEntry
impl<'de> Deserialize<'de> for AllowEntry
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 AllowEntry
impl RefUnwindSafe for AllowEntry
impl Send for AllowEntry
impl Sync for AllowEntry
impl Unpin for AllowEntry
impl UnsafeUnpin for AllowEntry
impl UnwindSafe for AllowEntry
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