pub struct PropertyDescriptor {
pub name: String,
pub value: Option<RemoteObject>,
pub writable: Option<bool>,
pub get: Option<RemoteObject>,
pub set: Option<RemoteObject>,
pub configurable: bool,
pub enumerable: bool,
pub was_thrown: Option<bool>,
pub is_own: Option<bool>,
pub symbol: Option<RemoteObject>,
}Expand description
Property descriptor.
Fields§
§name: StringProperty name or symbol description.
value: Option<RemoteObject>The value associated with the property.
writable: Option<bool>True if the value associated with the property may be changed.
get: Option<RemoteObject>A function which serves as a getter for the property.
set: Option<RemoteObject>A function which serves as a setter for the property.
configurable: boolTrue if the type of this property descriptor may be changed.
enumerable: boolTrue if this property shows up during enumeration.
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>Property symbol object.
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