pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new( base_url: &str, identity_url: &str, ui_url: &str, client_cert_path: Option<&Path>, ) -> Self
pub async fn prelogin( &self, email: &str, ) -> Result<(KdfType, u32, Option<u32>, Option<u32>)>
pub async fn register( &self, email: &str, device_id: &str, apikey: &ApiKey, ) -> Result<()>
pub async fn login( &self, email: &str, sso_id: Option<&str>, device_id: &str, password_hash: &PasswordHash, two_factor_token: Option<&str>, two_factor_provider: Option<TwoFactorProviderType>, ) -> Result<(String, String, String)>
pub async fn send_email_login( &self, email: &str, device_id: &str, sso_email_2fa_session_token: &str, ) -> Result<()>
pub async fn sync( &self, access_token: &str, ) -> Result<(String, String, HashMap<String, String>, Vec<Entry>)>
pub fn add( &self, access_token: &str, name: &str, data: &EntryData, notes: Option<&str>, folder_id: Option<&str>, ) -> Result<()>
pub fn edit( &self, access_token: &str, id: &str, org_id: Option<&str>, name: &str, data: &EntryData, fields: &[Field], notes: Option<&str>, folder_uuid: Option<&str>, history: &[HistoryEntry], ) -> Result<()>
pub fn remove(&self, access_token: &str, id: &str) -> Result<()>
pub fn folders(&self, access_token: &str) -> Result<Vec<(String, String)>>
pub fn create_folder(&self, access_token: &str, name: &str) -> Result<String>
pub fn exchange_refresh_token(&self, refresh_token: &str) -> Result<String>
pub async fn exchange_refresh_token_async( &self, refresh_token: &str, ) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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