Struct UpdatePassword

Source
pub struct UpdatePassword {
    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 update 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

§hidden: Option<bool>

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 UpdatePassword

Source

pub fn new(label: String, password: String, hash: String, id: Uuid) -> Self

Source

pub fn username(self, username: String) -> Self

Source

pub fn url(self, url: String) -> Self

Source

pub fn notes(self, notes: String) -> Self

Source

pub fn custom_fields(self, custom_fields: String) -> Self

Source

pub fn cse_type(self, cse_type: String) -> Self

Source

pub fn cse_key(self, cse_key: String) -> Self

Source

pub fn hidden(self, hidden: bool) -> Self

Source

pub fn favorite(self, favorite: bool) -> Self

Source

pub fn edited(self, edited: i64) -> Self

Source

pub fn folder(self, folder: FolderInfo) -> Self

Trait Implementations§

Source§

impl Debug for UpdatePassword

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for UpdatePassword

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for UpdatePassword

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,