pub struct Property {
pub configurable: bool,
pub enumerable: bool,
pub writable: bool,
pub value: Value,
pub get: Value,
pub set: Value,
}
Expand description
A Javascript Property AKA The Property Descriptor
[SPEC] - The Property Descriptor Specification Type
[SPEC] - Default Attribute Values
Fields
configurable: bool
If the type of this can be changed and this can be deleted
enumerable: bool
If the property shows up in enumeration of the object
writable: bool
If this property can be changed with an assignment
value: Value
The value associated with the property
get: Value
The function serving as getter
set: Value
The function serving as setter
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Property
impl !Send for Property
impl !Sync for Property
impl Unpin for Property
impl !UnwindSafe for Property
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more