Struct chromiumoxide::cdp::browser_protocol::browser::SetDownloadBehaviorParams[][src]

pub struct SetDownloadBehaviorParams {
    pub behavior: SetDownloadBehaviorBehavior,
    pub browser_context_id: Option<BrowserContextId>,
    pub download_path: Option<String>,
}

Set the behavior when downloading a file. setDownloadBehavior

Fields

behavior: SetDownloadBehaviorBehavior

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.

browser_context_id: Option<BrowserContextId>

BrowserContext to set download behavior. When omitted, default browser context is used.

download_path: Option<String>

The default path to save downloaded files to. This is requred if behavior is set to ‘allow’ or ‘allowAndName’.

Implementations

impl SetDownloadBehaviorParams[src]

impl SetDownloadBehaviorParams[src]

impl SetDownloadBehaviorParams[src]

pub const IDENTIFIER: &'static str[src]

Trait Implementations

impl Clone for SetDownloadBehaviorParams[src]

impl Command for SetDownloadBehaviorParams[src]

type Response = SetDownloadBehaviorReturns

The type of the response this request triggers on the chromium server

impl Debug for SetDownloadBehaviorParams[src]

impl<'de> Deserialize<'de> for SetDownloadBehaviorParams[src]

impl Method for SetDownloadBehaviorParams[src]

impl MethodType for SetDownloadBehaviorParams[src]

impl PartialEq<SetDownloadBehaviorParams> for SetDownloadBehaviorParams[src]

impl Serialize for SetDownloadBehaviorParams[src]

impl StructuralPartialEq for SetDownloadBehaviorParams[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,