Struct cdp::dom_snapshot::GetSnapshotCommand
[−]
[src]
pub struct GetSnapshotCommand<'a> { pub computed_style_whitelist: Vec<Cow<'a, str>>, }
[Experimental] Returns a document snapshot, including the full DOM tree of the root node (including iframes, template contents, and imported documents) in a flattened array, as well as layout and white-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is flattened.
Command DOMSnapshot.getSnapshot
Domain Module: cdp::dom_snapshot
Command Struct: cdp::dom_snapshot::GetSnapshotCommand
Response Struct: cdp::dom_snapshot::GetSnapshotResponse
Fields
computed_style_whitelist: Vec<Cow<'a, str>>
Whitelist of computed styles to return.
Trait Implementations
impl<'a> Clone for GetSnapshotCommand<'a>
[src]
fn clone(&self) -> GetSnapshotCommand<'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 GetSnapshotCommand<'a>
[src]
impl<'a> PartialEq for GetSnapshotCommand<'a>
[src]
fn eq(&self, __arg_0: &GetSnapshotCommand<'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: &GetSnapshotCommand<'a>) -> bool
[src]
This method tests for !=
.
impl<'a> CdpCommand for GetSnapshotCommand<'a>
[src]
const COMMAND_NAME: &'static str
COMMAND_NAME: &'static str = "DOMSnapshot.getSnapshot"
impl<'a> SerializeCdpCommand for GetSnapshotCommand<'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 GetSnapshotCommand<'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>,