pub struct CweId(pub String);Expand description
A CWE (Common Weakness Enumeration) identifier
CWE IDs follow the format “CWE-{number}” (e.g., “CWE-79” for Cross-Site Scripting)
Tuple Fields§
§0: StringImplementations§
Source§impl CweId
impl CweId
Sourcepub fn new(id: impl Into<String>) -> Self
pub fn new(id: impl Into<String>) -> Self
Creates a new CWE ID
§Example
use bugcrowd_vrt::CweId;
let cwe = CweId::new("CWE-79");
assert_eq!(cwe.as_str(), "CWE-79");Trait Implementations§
Source§impl<'de> Deserialize<'de> for CweId
impl<'de> Deserialize<'de> for CweId
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
impl Eq for CweId
impl StructuralPartialEq for CweId
Auto Trait Implementations§
impl Freeze for CweId
impl RefUnwindSafe for CweId
impl Send for CweId
impl Sync for CweId
impl Unpin for CweId
impl UnwindSafe for CweId
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