pub enum CweWeaknessKind {
Show 16 variants
Injection,
CrossSiteScripting,
CrossSiteRequestForgery,
MissingAuthorization,
MissingAuthentication,
PathTraversal,
CommandInjection,
CodeInjection,
BufferOverflow,
OutOfBoundsRead,
OutOfBoundsWrite,
UseAfterFree,
SensitiveInformationExposure,
Ssrf,
ResourceExhaustion,
Other,
}Expand description
CWE weakness category labels.
Variants§
Injection
CrossSiteScripting
CrossSiteRequestForgery
MissingAuthorization
MissingAuthentication
PathTraversal
CommandInjection
CodeInjection
BufferOverflow
OutOfBoundsRead
OutOfBoundsWrite
UseAfterFree
SensitiveInformationExposure
Ssrf
ResourceExhaustion
Other
Implementations§
Trait Implementations§
Source§impl Clone for CweWeaknessKind
impl Clone for CweWeaknessKind
Source§fn clone(&self) -> CweWeaknessKind
fn clone(&self) -> CweWeaknessKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CweWeaknessKind
impl Debug for CweWeaknessKind
Source§impl Display for CweWeaknessKind
impl Display for CweWeaknessKind
Source§impl FromStr for CweWeaknessKind
impl FromStr for CweWeaknessKind
Source§type Err = CweParseError
type Err = CweParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<CweWeaknessKind, <CweWeaknessKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<CweWeaknessKind, <CweWeaknessKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for CweWeaknessKind
impl Hash for CweWeaknessKind
Source§impl Ord for CweWeaknessKind
impl Ord for CweWeaknessKind
Source§fn cmp(&self, other: &CweWeaknessKind) -> Ordering
fn cmp(&self, other: &CweWeaknessKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CweWeaknessKind
impl PartialEq for CweWeaknessKind
Source§fn eq(&self, other: &CweWeaknessKind) -> bool
fn eq(&self, other: &CweWeaknessKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CweWeaknessKind
impl PartialOrd for CweWeaknessKind
impl Copy for CweWeaknessKind
impl Eq for CweWeaknessKind
impl StructuralPartialEq for CweWeaknessKind
Auto Trait Implementations§
impl Freeze for CweWeaknessKind
impl RefUnwindSafe for CweWeaknessKind
impl Send for CweWeaknessKind
impl Sync for CweWeaknessKind
impl Unpin for CweWeaknessKind
impl UnsafeUnpin for CweWeaknessKind
impl UnwindSafe for CweWeaknessKind
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