pub struct PropertyDescriptor { /* private fields */ }Available on crate feature
Runtime only.Expand description
Object property descriptor.
Implementations§
Source§impl PropertyDescriptor
impl PropertyDescriptor
pub fn builder() -> PropertyDescriptorBuilder
Sourcepub fn value(&self) -> Option<&RemoteObject>
pub fn value(&self) -> Option<&RemoteObject>
The value associated with the property.
Sourcepub fn writable(&self) -> Option<&bool>
pub fn writable(&self) -> Option<&bool>
True if the value associated with the property may be changed (data descriptors only).
Sourcepub fn get(&self) -> Option<&RemoteObject>
pub fn get(&self) -> Option<&RemoteObject>
A function which serves as a getter for the property, or undefined if there is no getter
(accessor descriptors only).
Sourcepub fn set(&self) -> Option<&RemoteObject>
pub fn set(&self) -> Option<&RemoteObject>
A function which serves as a setter for the property, or undefined if there is no setter
(accessor descriptors only).
Sourcepub fn configurable(&self) -> bool
pub fn configurable(&self) -> bool
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
Sourcepub fn enumerable(&self) -> bool
pub fn enumerable(&self) -> bool
True if this property shows up during enumeration of the properties on the corresponding object.
Sourcepub fn was_thrown(&self) -> Option<&bool>
pub fn was_thrown(&self) -> Option<&bool>
True if the result was thrown during the evaluation.
Sourcepub fn symbol(&self) -> Option<&RemoteObject>
pub fn symbol(&self) -> Option<&RemoteObject>
Property symbol object, if the property is of the symbol type.
Trait Implementations§
Source§impl Clone for PropertyDescriptor
impl Clone for PropertyDescriptor
Source§fn clone(&self) -> PropertyDescriptor
fn clone(&self) -> PropertyDescriptor
Returns a duplicate 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 PropertyDescriptor
impl Debug for PropertyDescriptor
Source§impl<'de> Deserialize<'de> for PropertyDescriptor
impl<'de> Deserialize<'de> for PropertyDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PropertyDescriptor
impl RefUnwindSafe for PropertyDescriptor
impl Send for PropertyDescriptor
impl Sync for PropertyDescriptor
impl Unpin for PropertyDescriptor
impl UnwindSafe for PropertyDescriptor
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