pub struct GetPropertiesBuilder { /* private fields */ }Expand description
Builder for GetProperties.
Implementations§
Source§impl GetPropertiesBuilder
impl GetPropertiesBuilder
Sourcepub fn object_id<VALUE: Into<RemoteObjectId>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn object_id<VALUE: Into<RemoteObjectId>>( &mut self, value: VALUE, ) -> &mut Self
Identifier of the object to return properties for.
Sourcepub fn own_properties<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn own_properties<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
If true, returns properties belonging only to the element itself, not to its prototype chain.
Sourcepub fn accessor_properties_only<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn accessor_properties_only<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
Sourcepub fn generate_preview<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn generate_preview<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Whether preview should be generated for the results.
Sourcepub fn non_indexed_properties_only<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn non_indexed_properties_only<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
If true, returns non-indexed properties only.
Sourcepub fn build(&self) -> Result<GetProperties, GetPropertiesBuilderError>
pub fn build(&self) -> Result<GetProperties, GetPropertiesBuilderError>
Trait Implementations§
Source§impl Clone for GetPropertiesBuilder
impl Clone for GetPropertiesBuilder
Source§fn clone(&self) -> GetPropertiesBuilder
fn clone(&self) -> GetPropertiesBuilder
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 moreAuto Trait Implementations§
impl Freeze for GetPropertiesBuilder
impl RefUnwindSafe for GetPropertiesBuilder
impl Send for GetPropertiesBuilder
impl Sync for GetPropertiesBuilder
impl Unpin for GetPropertiesBuilder
impl UnsafeUnpin for GetPropertiesBuilder
impl UnwindSafe for GetPropertiesBuilder
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