pub struct SetDownloadBehaviorCommand { /* private fields */ }
Available on crate features
Browser
and experimental
only.Expand description
Set the behavior when downloading a file.
Implementations§
Source§impl SetDownloadBehaviorCommand
impl SetDownloadBehaviorCommand
pub fn builder() -> SetDownloadBehaviorCommandBuilder
Sourcepub fn behavior(&self) -> &SetDownloadBehaviorCommandBehavior
pub fn behavior(&self) -> &SetDownloadBehaviorCommandBehavior
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(&self) -> Option<&JsonValue>
pub fn browser_context_id(&self) -> Option<&JsonValue>
BrowserContext to set download behavior. When omitted, default browser context is used.
Sourcepub fn download_path(&self) -> Option<&String>
pub fn download_path(&self) -> Option<&String>
The default path to save downloaded files to. This is requred if behavior is set to ‘allow’ or ‘allowAndName’.
Sourcepub fn events_enabled(&self) -> Option<&bool>
pub fn events_enabled(&self) -> Option<&bool>
Whether to emit download events (defaults to false).
Trait Implementations§
Source§impl Clone for SetDownloadBehaviorCommand
impl Clone for SetDownloadBehaviorCommand
Source§fn clone(&self) -> SetDownloadBehaviorCommand
fn clone(&self) -> SetDownloadBehaviorCommand
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 Command for SetDownloadBehaviorCommand
impl Command for SetDownloadBehaviorCommand
Source§impl Debug for SetDownloadBehaviorCommand
impl Debug for SetDownloadBehaviorCommand
Source§impl<'de> Deserialize<'de> for SetDownloadBehaviorCommand
impl<'de> Deserialize<'de> for SetDownloadBehaviorCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SetDownloadBehaviorCommand
impl RefUnwindSafe for SetDownloadBehaviorCommand
impl Send for SetDownloadBehaviorCommand
impl Sync for SetDownloadBehaviorCommand
impl Unpin for SetDownloadBehaviorCommand
impl UnwindSafe for SetDownloadBehaviorCommand
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