Struct cdp::runtime::PropertyDescriptor [] [src]

pub struct PropertyDescriptor<'a> {
    pub name: Cow<'a, str>,
    pub value: Option<RemoteObject<'a>>,
    pub writable: Option<bool>,
    pub get: Option<RemoteObject<'a>>,
    pub set: Option<RemoteObject<'a>>,
    pub configurable: bool,
    pub enumerable: bool,
    pub was_thrown: Option<bool>,
    pub is_own: Option<bool>,
    pub symbol: Option<RemoteObject<'a>>,
}

Object property descriptor.

Fields

Property name or symbol description.

The value associated with the property.

True if the value associated with the property may be changed (data descriptors only).

A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).

A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).

True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.

True if this property shows up during enumeration of the properties on the corresponding object.

True if the result was thrown during the evaluation.

True if the property is owned for the object.

Property symbol object, if the property is of the symbol type.

Trait Implementations

impl<'a> Clone for PropertyDescriptor<'a>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Debug for PropertyDescriptor<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> PartialEq for PropertyDescriptor<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.