pub struct Field { /* private fields */ }Expand description
A key value pair
Implementations§
Source§impl Field
impl Field
Sourcepub fn new_protected(key: &str, value: &str) -> Field
pub fn new_protected(key: &str, value: &str) -> Field
Create a new field without memory protection
Sourcepub fn protected(&self) -> bool
pub fn protected(&self) -> bool
Get whether memory protection and extra encryption should be applied
Note: This is instructional for official clients, this library does not support memory protection
Sourcepub fn set_protected(&mut self, protected: bool)
pub fn set_protected(&mut self, protected: bool)
Set whether memory protection and extra encryption should be applied
Note: This is instructional for official clients, this library does not support memory protection
Trait Implementations§
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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