GetLogins

Trait GetLogins 

Source
pub trait GetLogins: SealedCrypto + SealedLogins {
    // Provided methods
    fn logins_filter<F>(
        &self,
        filter: F,
    ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
       where F: IntoCondition + Send + Clone,
             Self: Sync { ... }
    fn logins_by_host<H>(
        &self,
        host: H,
    ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
       where Self: Sync,
             H: AsRef<str> + Send + Sync { ... }
    fn logins_all(
        &self,
    ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
       where Self: Sync { ... }
}

Provided Methods§

Source

fn logins_filter<F>( &self, filter: F, ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
where F: IntoCondition + Send + Clone, Self: Sync,

contains passwords

§Example:
use decrypt_cookies::prelude::*;

#[tokio::main]
async fn main() {
    let edge_getter = ChromiumBuilder::<Chrome>::new()
        .build()
        .await
        .unwrap();
    let res = edge_getter
        .logins_filter(ChromiumLoginCol::OriginUrl.contains("google.com"))
        .await
        .unwrap_or_default();
    dbg!(res);
}
Source

fn logins_by_host<H>( &self, host: H, ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
where Self: Sync, H: AsRef<str> + Send + Sync,

Filter by host

Source

fn logins_all( &self, ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
where Self: Sync,

Return all login data

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§