Struct chrome_remote_interface_model::page::SetDownloadBehaviorCommand [−][src]
👎 Deprecated
This is supported on crate features
Page
and Debugger
and DOM
and IO
and Network
and Runtime
and experimental
only.Set the behavior when downloading a file.
Implementations
impl SetDownloadBehaviorCommand
[src]
pub fn new(
behavior: SetDownloadBehaviorCommandBehavior,
download_path: Option<String>
) -> Self
[src]
behavior: SetDownloadBehaviorCommandBehavior,
download_path: Option<String>
) -> Self
👎 Deprecated
pub fn behavior(&self) -> &SetDownloadBehaviorCommandBehavior
[src]
👎 Deprecated
Whether to allow all or deny all download requests, or use default Chrome behavior if available (otherwise deny).
pub fn download_path(&self) -> Option<&String>
[src]
👎 Deprecated
The default path to save downloaded files to. This is requred if behavior is set to 'allow'
Trait Implementations
impl Clone for SetDownloadBehaviorCommand
[src]
fn clone(&self) -> SetDownloadBehaviorCommand
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for SetDownloadBehaviorCommand
[src]
type Return = SetDownloadBehaviorReturn
Return type.
const METHOD: &'static str
[src]
fn into_request(self, session_id: Option<SessionId>, id: u32) -> Request<Self> where
Self: Sized,
[src]
Self: Sized,
impl Debug for SetDownloadBehaviorCommand
[src]
impl<'de> Deserialize<'de> for SetDownloadBehaviorCommand
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SetDownloadBehaviorCommand
[src]
Auto Trait Implementations
impl RefUnwindSafe for SetDownloadBehaviorCommand
[src]
impl Send for SetDownloadBehaviorCommand
[src]
impl Sync for SetDownloadBehaviorCommand
[src]
impl Unpin for SetDownloadBehaviorCommand
[src]
impl UnwindSafe for SetDownloadBehaviorCommand
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,