pub struct SetDownloadBehaviorCommandBuilder { /* private fields */ }
Available on crate features
Browser
and experimental
only.Implementations§
Source§impl SetDownloadBehaviorCommandBuilder
impl SetDownloadBehaviorCommandBuilder
Sourcepub fn behavior(&mut self, v: SetDownloadBehaviorCommandBehavior) -> &mut Self
pub fn behavior(&mut self, v: SetDownloadBehaviorCommandBehavior) -> &mut Self
Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny). |allowAndName| allows download and names files according to their dowmload guids.
Sourcepub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
pub fn browser_context_id(&mut self, v: JsonValue) -> &mut Self
BrowserContext to set download behavior. When omitted, default browser context is used.
Sourcepub fn download_path(&mut self, v: String) -> &mut Self
pub fn download_path(&mut self, v: String) -> &mut Self
The default path to save downloaded files to. This is requred if behavior is set to ‘allow’ or ‘allowAndName’.
Sourcepub fn events_enabled(&mut self, v: bool) -> &mut Self
pub fn events_enabled(&mut self, v: bool) -> &mut Self
Whether to emit download events (defaults to false).
pub fn build(&mut self) -> Result<SetDownloadBehaviorCommand, &'static str>
Trait Implementations§
Source§impl Clone for SetDownloadBehaviorCommandBuilder
impl Clone for SetDownloadBehaviorCommandBuilder
Source§fn clone(&self) -> SetDownloadBehaviorCommandBuilder
fn clone(&self) -> SetDownloadBehaviorCommandBuilder
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 moreAuto Trait Implementations§
impl Freeze for SetDownloadBehaviorCommandBuilder
impl RefUnwindSafe for SetDownloadBehaviorCommandBuilder
impl Send for SetDownloadBehaviorCommandBuilder
impl Sync for SetDownloadBehaviorCommandBuilder
impl Unpin for SetDownloadBehaviorCommandBuilder
impl UnwindSafe for SetDownloadBehaviorCommandBuilder
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