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