Struct chrome_remote_interface_model::page::SetDownloadBehaviorCommand [−][src]
pub struct SetDownloadBehaviorCommand { /* fields omitted */ }
👎 Deprecated
This is supported 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
pub fn new(
behavior: SetDownloadBehaviorCommandBehavior,
download_path: Option<String>
) -> Self
👎 Deprecated
👎 Deprecated
👎 Deprecated
Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
👎 Deprecated
👎 Deprecated
The default path to save downloaded files to. This is requred if behavior is set to ‘allow’
Trait Implementations
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 RefUnwindSafe for SetDownloadBehaviorCommand
impl Send for SetDownloadBehaviorCommand
impl Sync for SetDownloadBehaviorCommand
impl Unpin for SetDownloadBehaviorCommand
impl UnwindSafe for SetDownloadBehaviorCommand
Blanket Implementations
Mutably borrows from an owned value. Read more