Struct chrome_remote_interface_model::runtime::RemoteObjectBuilder[][src]

pub struct RemoteObjectBuilder { /* fields omitted */ }

Implementations

impl RemoteObjectBuilder[src]

pub fn type(&mut self, v: RemoteObjectType) -> &mut Self[src]

Object type.

pub fn subtype(&mut self, v: RemoteObjectSubtype) -> &mut Self[src]

Object subtype hint. Specified for object or wasm type values only.

pub fn class_name(&mut self, v: String) -> &mut Self[src]

Object class (constructor) name. Specified for object type values only.

pub fn value(&mut self, v: JsonValue) -> &mut Self[src]

Remote object value in case of primitive values or JSON values (if it was requested).

pub fn unserializable_value(&mut self, v: UnserializableValue) -> &mut Self[src]

Primitive value which can not be JSON-stringified does not have value, but gets this property.

pub fn description(&mut self, v: String) -> &mut Self[src]

String representation of the object.

pub fn object_id(&mut self, v: RemoteObjectId) -> &mut Self[src]

Unique object identifier (for non-primitive values).

pub fn preview(&mut self, v: JsonValue) -> &mut Self[src]

Preview containing abbreviated property values. Specified for object type values only.

pub fn custom_preview(&mut self, v: JsonValue) -> &mut Self[src]

pub fn build(&mut self) -> Result<RemoteObject, &'static str>[src]

Trait Implementations

impl Clone for RemoteObjectBuilder[src]

impl Debug for RemoteObjectBuilder[src]

impl Default for RemoteObjectBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.