pub struct SetDownloadBehaviorCommand { /* private fields */ }👎Deprecated
Available on crate features
Page and Debugger and DOM and IO and Network and Runtime and experimental only.Expand description
Set the behavior when downloading a file.
Implementations§
Source§impl SetDownloadBehaviorCommand
impl SetDownloadBehaviorCommand
pub fn new( behavior: SetDownloadBehaviorCommandBehavior, download_path: Option<String>, ) -> Self
👎Deprecated
Sourcepub fn behavior(&self) -> &SetDownloadBehaviorCommandBehavior
👎Deprecated
pub fn behavior(&self) -> &SetDownloadBehaviorCommandBehavior
Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
Sourcepub fn download_path(&self) -> Option<&String>
👎Deprecated
pub fn download_path(&self) -> Option<&String>
The default path to save downloaded files to. This is requred if behavior is set to ‘allow’
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 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