#[non_exhaustive]#[repr(C)]pub enum FieldAttribute {
Sensitive,
Arbitrary(&'static str),
}Expand description
An attribute that can be set on a field
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sensitive
Marks field as containing sensitive information
Arbitrary(&'static str)
Custom field attribute containing arbitrary text
Trait Implementations§
Source§impl Clone for FieldAttribute
impl Clone for FieldAttribute
Source§fn clone(&self) -> FieldAttribute
fn clone(&self) -> FieldAttribute
Returns a copy 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 moreSource§impl Debug for FieldAttribute
impl Debug for FieldAttribute
Source§impl Hash for FieldAttribute
impl Hash for FieldAttribute
Source§impl PartialEq for FieldAttribute
impl PartialEq for FieldAttribute
impl Copy for FieldAttribute
impl Eq for FieldAttribute
impl StructuralPartialEq for FieldAttribute
Auto Trait Implementations§
impl Freeze for FieldAttribute
impl RefUnwindSafe for FieldAttribute
impl Send for FieldAttribute
impl Sync for FieldAttribute
impl Unpin for FieldAttribute
impl UnwindSafe for FieldAttribute
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