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

Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for SetDownloadBehaviorCommand<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for SetDownloadBehaviorCommand<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<'a> CdpCommand for SetDownloadBehaviorCommand<'a>
[src]

COMMAND_NAME: &'static str = "Page.setDownloadBehavior"

impl<'a> SerializeCdpCommand for SetDownloadBehaviorCommand<'a>
[src]

[src]

[src]

impl<'de, 'a> DeserializeCdpCommand<'de> for SetDownloadBehaviorCommand<'a>
[src]

[src]

impl<'b, 'a> HasCdpResponse<'b> for SetDownloadBehaviorCommand<'a>
[src]