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