pub struct ThreatSurface(/* private fields */);Implementations§
Source§impl ThreatSurface
impl ThreatSurface
Sourcepub fn new(input: impl AsRef<str>) -> Result<ThreatSurface, ThreatError>
pub fn new(input: impl AsRef<str>) -> Result<ThreatSurface, ThreatError>
Creates non-empty threat text metadata.
Trait Implementations§
Source§impl Clone for ThreatSurface
impl Clone for ThreatSurface
Source§fn clone(&self) -> ThreatSurface
fn clone(&self) -> ThreatSurface
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 ThreatSurface
impl Debug for ThreatSurface
Source§impl Display for ThreatSurface
impl Display for ThreatSurface
Source§impl FromStr for ThreatSurface
impl FromStr for ThreatSurface
Source§type Err = ThreatError
type Err = ThreatError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<ThreatSurface, <ThreatSurface as FromStr>::Err>
fn from_str( input: &str, ) -> Result<ThreatSurface, <ThreatSurface as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ThreatSurface
impl Hash for ThreatSurface
Source§impl Ord for ThreatSurface
impl Ord for ThreatSurface
Source§fn cmp(&self, other: &ThreatSurface) -> Ordering
fn cmp(&self, other: &ThreatSurface) -> 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 ThreatSurface
impl PartialEq for ThreatSurface
Source§fn eq(&self, other: &ThreatSurface) -> bool
fn eq(&self, other: &ThreatSurface) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ThreatSurface
impl PartialOrd for ThreatSurface
Source§impl TryFrom<&str> for ThreatSurface
impl TryFrom<&str> for ThreatSurface
Source§type Error = ThreatError
type Error = ThreatError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<ThreatSurface, <ThreatSurface as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<ThreatSurface, <ThreatSurface as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for ThreatSurface
impl StructuralPartialEq for ThreatSurface
Auto Trait Implementations§
impl Freeze for ThreatSurface
impl RefUnwindSafe for ThreatSurface
impl Send for ThreatSurface
impl Sync for ThreatSurface
impl Unpin for ThreatSurface
impl UnsafeUnpin for ThreatSurface
impl UnwindSafe for ThreatSurface
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