pub struct FieldObject {
pub section: Option<SectionID>,
pub purpose: Option<String>,
pub type: Option<String>,
pub value: Option<String>,
pub generate: Option<bool>,
pub label: Option<String>,
}Expand description
This is a Field Object
Fields§
§section: Option<SectionID>An object containing the UUID of a section in the item.
purpose: Option<String>Use purpose for the username, password, and notes fields.
type: Option<String>Use `type’ for all other fields
value: Option<String>The value to save for the field. You can specify a generate field instead of value to create a password or other random information for the value.
generate: Option<bool>Generate a password and save in the value for the field. By default, the password is a 32-characters long, made up of letters, numbers, and symbols. To customize the password, include a recipe field.
label: Option<String>Some optional text
Trait Implementations§
Source§impl Clone for FieldObject
impl Clone for FieldObject
Source§fn clone(&self) -> FieldObject
fn clone(&self) -> FieldObject
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 FieldObject
impl Debug for FieldObject
Source§impl<'de> Deserialize<'de> for FieldObject
impl<'de> Deserialize<'de> for FieldObject
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FieldObject
impl RefUnwindSafe for FieldObject
impl Send for FieldObject
impl Sync for FieldObject
impl Unpin for FieldObject
impl UnsafeUnpin for FieldObject
impl UnwindSafe for FieldObject
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