pub struct ImportSpec {
pub browser: BrowserSource,
pub source_profile: Option<String>,
pub domains: Option<Vec<String>>,
pub consent: UserConsentReceipt,
pub revocation: ConsentRevocation,
pub reimport: bool,
}Expand description
Consent-gated copy of a browser profile’s sign-ins into a named RightKit profile (see
crate::ProfileSpec::ImportedFrom).
Fields§
§browser: BrowserSource§source_profile: Option<String>Source profile directory name; None means the consent’s profile.
domains: Option<Vec<String>>Narrow the consent further; None means the consent’s domains. Every entry must be
inside the consent. Scopes the session’s actions (the cookie database is copied whole).
consent: UserConsentReceipt§revocation: ConsentRevocation§reimport: boolCopy again even when this consent already imported into the profile.
Implementations§
Source§impl ImportSpec
impl ImportSpec
pub fn new(browser: BrowserSource, consent: UserConsentReceipt) -> Self
pub fn source_profile(self, name: impl Into<String>) -> Self
pub fn domains(self, domains: Vec<String>) -> Self
pub fn revocation(self, revocation: ConsentRevocation) -> Self
pub fn reimport(self) -> Self
Trait Implementations§
Source§impl Clone for ImportSpec
impl Clone for ImportSpec
Source§impl Debug for ImportSpec
impl Debug for ImportSpec
impl Eq for ImportSpec
Source§impl PartialEq for ImportSpec
impl PartialEq for ImportSpec
impl StructuralPartialEq for ImportSpec
Auto Trait Implementations§
impl Forget for ImportSpec
impl Freeze for ImportSpec
impl Move for ImportSpec
impl RefUnwindSafe for ImportSpec
impl Send for ImportSpec
impl Sync for ImportSpec
impl Unpin for ImportSpec
impl UnsafeUnpin for ImportSpecwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
impl UnwindSafe for ImportSpec
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