Struct cdp::page::SetDownloadBehaviorCommand
[−]
[src]
pub struct SetDownloadBehaviorCommand<'a> { pub behavior: SetDownloadBehaviorCommandBehavior, pub download_path: Option<Cow<'a, str>>, }
[Experimental] Set the behavior when downloading a file.
Command Page.setDownloadBehavior
Domain Module: cdp::page
Command Struct: cdp::page::SetDownloadBehaviorCommand
Response Struct: cdp::page::SetDownloadBehaviorResponse
Fields
behavior: SetDownloadBehaviorCommandBehavior
Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
download_path: Option<Cow<'a, str>>
The default path to save downloaded files to. This is requred if behavior is set to 'allow'
Trait Implementations
impl<'a> Clone for SetDownloadBehaviorCommand<'a>
[src]
fn clone(&self) -> SetDownloadBehaviorCommand<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for SetDownloadBehaviorCommand<'a>
[src]
impl<'a> PartialEq for SetDownloadBehaviorCommand<'a>
[src]
fn eq(&self, __arg_0: &SetDownloadBehaviorCommand<'a>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SetDownloadBehaviorCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for SetDownloadBehaviorCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "Page.setDownloadBehavior"
impl<'a> SerializeCdpCommand for SetDownloadBehaviorCommand<'a>
[src]
fn command_name(&self) -> &str
[src]
fn serialize_command_params<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
impl<'de, 'a> DeserializeCdpCommand<'de> for SetDownloadBehaviorCommand<'a>
[src]
fn deserialize_command<D>(
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,
[src]
name: &str,
params: D
) -> Result<Result<Self, D::Error>, D> where
D: Deserializer<'de>,