pub struct Vault { /* private fields */ }Implementations§
Source§impl Vault
impl Vault
pub fn open(dir: PathBuf) -> Result<Self>
pub async fn list(&self) -> Vec<Account>
pub async fn upsert(&self, account: Account) -> Result<()>
pub async fn remove(&self, id: &str) -> Result<bool>
pub async fn account_for( &self, provider: Provider, prefer_oauth: bool, ) -> Result<Account>
pub async fn mark_cooldown(&self, id: &str, until_ms: i64) -> Result<()>
pub async fn refresh(&self, id: &str, force: bool) -> Result<Account>
pub async fn set_account_meta( &self, id: &str, key: &str, value: Value, ) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Vault
impl !RefUnwindSafe for Vault
impl !UnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnsafeUnpin for Vault
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