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
name: Cow<'a, str>
Property name or symbol description.
value: Option<RemoteObject<'a>>
The value associated with the property.
writable: Option<bool>
True if the value associated with the property may be changed (data descriptors only).
get: Option<RemoteObject<'a>>
A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).
set: Option<RemoteObject<'a>>
A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).
configurable: bool
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
enumerable: bool
True if this property shows up during enumeration of the properties on the corresponding object.
was_thrown: Option<bool>
True if the result was thrown during the evaluation.
is_own: Option<bool>
True if the property is owned for the object.
symbol: Option<RemoteObject<'a>>
Property symbol object, if the property is of the symbol type.
Trait Implementations
impl<'a> Clone for PropertyDescriptor<'a>[src]
fn clone(&self) -> PropertyDescriptor<'a>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<'a> Debug for PropertyDescriptor<'a>[src]
impl<'a> PartialEq for PropertyDescriptor<'a>[src]
fn eq(&self, __arg_0: &PropertyDescriptor<'a>) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &PropertyDescriptor<'a>) -> bool[src]
This method tests for !=.