pub struct ChromiumGetter<T> { /* private fields */ }
Expand description
Implementations§
Source§impl<T: Send + Sync> ChromiumGetter<T>
impl<T: Send + Sync> ChromiumGetter<T>
Sourcepub async fn logins_filter<F>(
&self,
filter: F,
) -> Result<Vec<LoginData>, ChromiumError>
pub async fn logins_filter<F>( &self, filter: F, ) -> Result<Vec<LoginData>, ChromiumError>
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);
}
pub async fn logins_by_host<F>( &self, host: F, ) -> Result<Vec<LoginData>, ChromiumError>
Sourcepub async fn all_logins(&self) -> Result<Vec<LoginData>, ChromiumError>
pub async fn all_logins(&self) -> Result<Vec<LoginData>, ChromiumError>
contains passwords
Source§impl<T: Send + Sync> ChromiumGetter<T>
impl<T: Send + Sync> ChromiumGetter<T>
filter cookies
§Example:
use decrypt_cookies::prelude::*;
#[tokio::main]
async fn main() {
let edge_getter = ChromiumBuilder::<Chrome>::new()
.build()
.await
.unwrap();
let res = edge_getter
.cookies_filter(ChromiumCookieCol::HostKey.contains("google.com"))
.await
.unwrap_or_default();
dbg!(res);
}
decrypt Cookies
return all cookies
Sourcepub async fn get_session_csrf<A: AsRef<str> + Send>(
&self,
host: A,
) -> Result<LeetCodeCookies, ChromiumError>
pub async fn get_session_csrf<A: AsRef<str> + Send>( &self, host: A, ) -> Result<LeetCodeCookies, ChromiumError>
get LEETCODE_SESSION
and csrftoken
for leetcode
Source§impl<T> ChromiumGetter<T>
impl<T> ChromiumGetter<T>
Trait Implementations§
Source§impl<T: Clone> Clone for ChromiumGetter<T>
impl<T: Clone> Clone for ChromiumGetter<T>
Source§fn clone(&self) -> ChromiumGetter<T>
fn clone(&self) -> ChromiumGetter<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for ChromiumGetter<T>
impl<T: Debug> Debug for ChromiumGetter<T>
Source§impl<T: Default> Default for ChromiumGetter<T>
impl<T: Default> Default for ChromiumGetter<T>
Source§fn default() -> ChromiumGetter<T>
fn default() -> ChromiumGetter<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for ChromiumGetter<T>
impl<T> !RefUnwindSafe for ChromiumGetter<T>
impl<T> Send for ChromiumGetter<T>where
T: Send,
impl<T> Sync for ChromiumGetter<T>where
T: Sync,
impl<T> Unpin for ChromiumGetter<T>where
T: Unpin,
impl<T> !UnwindSafe for ChromiumGetter<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more