pub struct RemoteObject {
pub type: RemoteObjectType,
pub subtype: Option<RemoteObjectSubtype>,
pub class_name: Option<String>,
pub value: Option<Value>,
pub unserializable_value: Option<UnserializableValue>,
pub description: Option<String>,
pub deep_serialized_value: Option<DeepSerializedValue>,
pub object_id: Option<RemoteObjectId>,
pub preview: Option<ObjectPreview>,
pub custom_preview: Option<CustomPreview>,
}
Expand description
Mirror object referencing original JavaScript object. RemoteObject
Fields§
§type: RemoteObjectType
Object type.
subtype: 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.
class_name: Option<String>
Object class (constructor) name. Specified for object
type values only.
value: Option<Value>
Remote object value in case of primitive values or JSON values (if it was requested).
unserializable_value: Option<UnserializableValue>
Primitive value which can not be JSON-stringified does not have value
, but gets this
property.
description: Option<String>
String representation of the object.
deep_serialized_value: Option<DeepSerializedValue>
Deep serialized value.
object_id: Option<RemoteObjectId>
Unique object identifier (for non-primitive values).
preview: Option<ObjectPreview>
Preview containing abbreviated property values. Specified for object
type values only.
custom_preview: Option<CustomPreview>
Implementations§
Source§impl RemoteObject
impl RemoteObject
pub fn new(type: impl Into<RemoteObjectType>) -> RemoteObject
Source§impl RemoteObject
impl RemoteObject
pub fn builder() -> RemoteObjectBuilder
Source§impl RemoteObject
impl RemoteObject
pub const IDENTIFIER: &'static str = "Runtime.RemoteObject"
Trait Implementations§
Source§impl Clone for RemoteObject
impl Clone for RemoteObject
Source§fn clone(&self) -> RemoteObject
fn clone(&self) -> RemoteObject
Returns a copy 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 RemoteObject
impl Debug for RemoteObject
Source§impl<'de> Deserialize<'de> for RemoteObject
impl<'de> Deserialize<'de> for RemoteObject
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RemoteObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RemoteObject, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RemoteObject
impl PartialEq for RemoteObject
Source§impl Serialize for RemoteObject
impl Serialize for RemoteObject
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RemoteObject
Auto Trait Implementations§
impl Freeze for RemoteObject
impl RefUnwindSafe for RemoteObject
impl Send for RemoteObject
impl Sync for RemoteObject
impl Unpin for RemoteObject
impl UnwindSafe for RemoteObject
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more