pub struct CloseTarget {
pub method: CloseTargetMethod,
pub params: CloseTargetParams,
}Expand description
Closes the target. If the target is a page that gets closed too. closeTarget
Fields§
§method: CloseTargetMethod§params: CloseTargetParamsImplementations§
Source§impl CloseTarget
impl CloseTarget
pub fn builder() -> CloseTargetBuilder
Source§impl CloseTarget
impl CloseTarget
pub const IDENTIFIER: &'static str = "Target.closeTarget"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for CloseTarget
impl Clone for CloseTarget
Source§fn clone(&self) -> CloseTarget
fn clone(&self) -> CloseTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandResult for CloseTarget
impl CommandResult for CloseTarget
type Result = CloseTargetResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for CloseTarget
impl Debug for CloseTarget
Source§impl<'de> Deserialize<'de> for CloseTarget
impl<'de> Deserialize<'de> for CloseTarget
Source§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
Source§impl From<CloseTarget> for BrowserProtocolCommands
impl From<CloseTarget> for BrowserProtocolCommands
Source§fn from(v: CloseTarget) -> Self
fn from(v: CloseTarget) -> Self
Converts to this type from the input type.
Source§impl From<CloseTarget> for Command
impl From<CloseTarget> for Command
Source§fn from(v: CloseTarget) -> Self
fn from(v: CloseTarget) -> Self
Converts to this type from the input type.
Source§impl From<CloseTarget> for TargetCommands
impl From<CloseTarget> for TargetCommands
Source§fn from(v: CloseTarget) -> Self
fn from(v: CloseTarget) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CloseTarget
impl PartialEq for CloseTarget
Source§impl Serialize for CloseTarget
impl Serialize for CloseTarget
Source§impl TryFrom<BrowserProtocolCommands> for CloseTarget
impl TryFrom<BrowserProtocolCommands> for CloseTarget
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <CloseTarget as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <CloseTarget as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for CloseTarget
impl TryFrom<Command> for CloseTarget
Source§impl TryFrom<TargetCommands> for CloseTarget
impl TryFrom<TargetCommands> for CloseTarget
Source§type Error = TargetCommands
type Error = TargetCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: TargetCommands,
) -> Result<Self, <CloseTarget as TryFrom<TargetCommands>>::Error>
fn try_from( e: TargetCommands, ) -> Result<Self, <CloseTarget as TryFrom<TargetCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for CloseTarget
Auto Trait Implementations§
impl Freeze for CloseTarget
impl RefUnwindSafe for CloseTarget
impl Send for CloseTarget
impl Sync for CloseTarget
impl Unpin for CloseTarget
impl UnsafeUnpin for CloseTarget
impl UnwindSafe for CloseTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more