pub struct CreatePassword {
pub username: Option<String>,
pub url: Option<String>,
pub notes: Option<String>,
pub custom_fields: Option<String>,
pub cse_type: Option<String>,
pub cse_key: Option<String>,
pub hidden: Option<bool>,
pub favorite: Option<bool>,
pub edited: Option<i64>,
pub folder: Option<FolderInfo>,
/* private fields */
}
Expand description
Builder to create Password, the values in the builder are optional values
Fields§
§username: Option<String>
Username associated with the password
url: Option<String>
Url of the website
notes: Option<String>
Notes for the password. Can be formatted with Markdown
custom_fields: Option<String>
Custom fields created by the user.
cse_type: Option<String>
Type of the used client side encryption
cse_key: Option<String>
UUID of the key used for client side encryption
Hides the password in list / find actions
favorite: Option<bool>
True if the user has marked the password as favorite
edited: Option<i64>
Unix timestamp when the user last changed the password
folder: Option<FolderInfo>
Either the UUID of the current folder of the password or the folder model
Implementations§
Source§impl CreatePassword
impl CreatePassword
pub fn new(label: String, password: String, hash: String) -> Self
pub fn username(self, username: String) -> Self
pub fn url(self, url: String) -> Self
pub fn notes(self, notes: String) -> Self
pub fn custom_fields(self, custom_fields: String) -> Self
pub fn cse_type(self, cse_type: String) -> Self
pub fn cse_key(self, cse_key: String) -> Self
pub fn favorite(self, favorite: bool) -> Self
pub fn edited(self, edited: i64) -> Self
pub fn folder(self, folder: FolderInfo) -> Self
Trait Implementations§
Source§impl Debug for CreatePassword
impl Debug for CreatePassword
Source§impl<'de> Deserialize<'de> for CreatePassword
impl<'de> Deserialize<'de> for CreatePassword
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 CreatePassword
impl RefUnwindSafe for CreatePassword
impl Send for CreatePassword
impl Sync for CreatePassword
impl Unpin for CreatePassword
impl UnwindSafe for CreatePassword
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