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§
Sourcefn logins_filter<F>(
&self,
filter: F,
) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
fn logins_filter<F>( &self, filter: F, ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
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);
}
Sourcefn logins_by_host<H>(
&self,
host: H,
) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
fn logins_by_host<H>( &self, host: H, ) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Send
Filter by host
Sourcefn logins_all(
&self,
) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Sendwhere
Self: Sync,
fn logins_all(
&self,
) -> impl Future<Output = Result<Vec<LoginData>, ChromiumError>> + Sendwhere
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.