Struct lesspass_client::Client

source ·
pub struct Client {
    pub host: Url,
}
Expand description

Client for connecting to LessPass server

Fields§

§host: Url

Implementations§

Builder interface to Client

Usage:

use reqwest::Url;
use lesspass_client::Client;

let host = Url::parse("https://api.lesspass.com").unwrap();
let lpc = Client::new(host);

Configure the client itself

Creates a new user

Changes current user password

Need access token string

Create a new token (perform initial auth with username and password)

Refresh a token

Need refresh token string

Gets the password list

Need access token string

Creates a new password

Need access token string

Updates existing password

Need access token string

Deletes existing password

Need access token string

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

Calls U::from(self).

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

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more