Struct chrome_remote_interface_model::runtime::ObjectPreviewBuilder[][src]

pub struct ObjectPreviewBuilder { /* fields omitted */ }

Implementations

impl ObjectPreviewBuilder[src]

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

Object type.

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

Object subtype hint. Specified for object type values only.

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

String representation of the object.

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

True iff some of the properties or entries of the original object did not fit.

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

List of the properties.

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

List of the entries. Specified for map and set subtype values only.

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

Trait Implementations

impl Clone for ObjectPreviewBuilder[src]

impl Debug for ObjectPreviewBuilder[src]

impl Default for ObjectPreviewBuilder[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.