pub struct OwaspRiskId(/* private fields */);Expand description
Lightweight OWASP risk identifier.
Implementations§
Source§impl OwaspRiskId
impl OwaspRiskId
Sourcepub fn new(input: impl AsRef<str>) -> Result<OwaspRiskId, OwaspTextError>
pub fn new(input: impl AsRef<str>) -> Result<OwaspRiskId, OwaspTextError>
Creates a non-empty OWASP risk ID.
Trait Implementations§
Source§impl Clone for OwaspRiskId
impl Clone for OwaspRiskId
Source§fn clone(&self) -> OwaspRiskId
fn clone(&self) -> OwaspRiskId
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 OwaspRiskId
impl Debug for OwaspRiskId
Source§impl Display for OwaspRiskId
impl Display for OwaspRiskId
Source§impl Hash for OwaspRiskId
impl Hash for OwaspRiskId
Source§impl Ord for OwaspRiskId
impl Ord for OwaspRiskId
Source§fn cmp(&self, other: &OwaspRiskId) -> Ordering
fn cmp(&self, other: &OwaspRiskId) -> 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 OwaspRiskId
impl PartialEq for OwaspRiskId
Source§fn eq(&self, other: &OwaspRiskId) -> bool
fn eq(&self, other: &OwaspRiskId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OwaspRiskId
impl PartialOrd for OwaspRiskId
impl Eq for OwaspRiskId
impl StructuralPartialEq for OwaspRiskId
Auto Trait Implementations§
impl Freeze for OwaspRiskId
impl RefUnwindSafe for OwaspRiskId
impl Send for OwaspRiskId
impl Sync for OwaspRiskId
impl Unpin for OwaspRiskId
impl UnsafeUnpin for OwaspRiskId
impl UnwindSafe for OwaspRiskId
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