pub struct ResolveNodeReturn { /* private fields */ }Available on crate features
DOM and Runtime only.Expand description
Resolves the JavaScript node object for a given NodeId or BackendNodeId.
Implementations§
Source§impl ResolveNodeReturn
impl ResolveNodeReturn
pub fn new(object: RemoteObject) -> Self
Sourcepub fn object(&self) -> &RemoteObject
pub fn object(&self) -> &RemoteObject
JavaScript object wrapper for given node.
Methods from Deref<Target = RemoteObject>§
Sourcepub fn type(&self) -> &RemoteObjectType
pub fn type(&self) -> &RemoteObjectType
Object type.
Sourcepub fn subtype(&self) -> Option<&RemoteObjectSubtype>
pub fn subtype(&self) -> Option<&RemoteObjectSubtype>
Object subtype hint. Specified for object type values only.
NOTE: If you change anything here, make sure to also update
subtype in ObjectPreview and PropertyPreview below.
Sourcepub fn class_name(&self) -> Option<&String>
pub fn class_name(&self) -> Option<&String>
Object class (constructor) name. Specified for object type values only.
Sourcepub fn value(&self) -> Option<&JsonValue>
pub fn value(&self) -> Option<&JsonValue>
Remote object value in case of primitive values or JSON values (if it was requested).
Sourcepub fn unserializable_value(&self) -> Option<&UnserializableValue>
pub fn unserializable_value(&self) -> Option<&UnserializableValue>
Primitive value which can not be JSON-stringified does not have value, but gets this
property.
Sourcepub fn description(&self) -> Option<&String>
pub fn description(&self) -> Option<&String>
String representation of the object.
Sourcepub fn object_id(&self) -> Option<&RemoteObjectId>
pub fn object_id(&self) -> Option<&RemoteObjectId>
Unique object identifier (for non-primitive values).
Sourcepub fn preview(&self) -> Option<&JsonValue>
Available on crate feature experimental only.
pub fn preview(&self) -> Option<&JsonValue>
experimental only.Preview containing abbreviated property values. Specified for object type values only.
pub fn custom_preview(&self) -> Option<&JsonValue>
Available on crate feature
experimental only.Trait Implementations§
Source§impl Clone for ResolveNodeReturn
impl Clone for ResolveNodeReturn
Source§fn clone(&self) -> ResolveNodeReturn
fn clone(&self) -> ResolveNodeReturn
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 Debug for ResolveNodeReturn
impl Debug for ResolveNodeReturn
Source§impl Deref for ResolveNodeReturn
impl Deref for ResolveNodeReturn
Source§impl<'de> Deserialize<'de> for ResolveNodeReturn
impl<'de> Deserialize<'de> for ResolveNodeReturn
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
Auto Trait Implementations§
impl Freeze for ResolveNodeReturn
impl RefUnwindSafe for ResolveNodeReturn
impl Send for ResolveNodeReturn
impl Sync for ResolveNodeReturn
impl Unpin for ResolveNodeReturn
impl UnwindSafe for ResolveNodeReturn
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