Struct ProtectionStatus
pub struct ProtectionStatus(/* private fields */);Implementations§
§impl ProtectionStatus
impl ProtectionStatus
pub fn new(
value: impl AsRef<str>,
) -> Result<ProtectionStatus, ConservationTextError>
pub fn new( value: impl AsRef<str>, ) -> Result<ProtectionStatus, ConservationTextError>
§Errors
Returns ConservationTextError::Empty when value is blank.
pub fn as_str(&self) -> &str
Trait Implementations§
§impl Clone for ProtectionStatus
impl Clone for ProtectionStatus
§fn clone(&self) -> ProtectionStatus
fn clone(&self) -> ProtectionStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ProtectionStatus
impl Debug for ProtectionStatus
§impl Display for ProtectionStatus
impl Display for ProtectionStatus
§impl Hash for ProtectionStatus
impl Hash for ProtectionStatus
§impl Ord for ProtectionStatus
impl Ord for ProtectionStatus
§fn cmp(&self, other: &ProtectionStatus) -> Ordering
fn cmp(&self, other: &ProtectionStatus) -> Ordering
1.21.0 · 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
§impl PartialEq for ProtectionStatus
impl PartialEq for ProtectionStatus
§impl PartialOrd for ProtectionStatus
impl PartialOrd for ProtectionStatus
impl Eq for ProtectionStatus
impl StructuralPartialEq for ProtectionStatus
Auto Trait Implementations§
impl Freeze for ProtectionStatus
impl RefUnwindSafe for ProtectionStatus
impl Send for ProtectionStatus
impl Sync for ProtectionStatus
impl Unpin for ProtectionStatus
impl UnsafeUnpin for ProtectionStatus
impl UnwindSafe for ProtectionStatus
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