Struct chromiumoxide::cdp::js_protocol::runtime::PropertyPreview
source · pub struct PropertyPreview {
pub name: String,
pub type: PropertyPreviewType,
pub value: Option<String>,
pub value_preview: Option<ObjectPreview>,
pub subtype: Option<PropertyPreviewSubtype>,
}
Fields§
§name: String
Property name.
type: PropertyPreviewType
Object type. Accessor means that the property itself is an accessor property.
value: Option<String>
User-friendly property value string.
value_preview: Option<ObjectPreview>
Nested value preview.
subtype: Option<PropertyPreviewSubtype>
Object subtype hint. Specified for object
type values only.
Implementations§
source§impl PropertyPreview
impl PropertyPreview
pub fn new( name: impl Into<String>, type: impl Into<PropertyPreviewType> ) -> PropertyPreview
source§impl PropertyPreview
impl PropertyPreview
pub fn builder() -> PropertyPreviewBuilder
source§impl PropertyPreview
impl PropertyPreview
pub const IDENTIFIER: &'static str = "Runtime.PropertyPreview"
Trait Implementations§
source§impl Clone for PropertyPreview
impl Clone for PropertyPreview
source§fn clone(&self) -> PropertyPreview
fn clone(&self) -> PropertyPreview
Returns a copy 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 PropertyPreview
impl Debug for PropertyPreview
source§impl<'de> Deserialize<'de> for PropertyPreview
impl<'de> Deserialize<'de> for PropertyPreview
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<PropertyPreview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PropertyPreview, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PropertyPreview
impl PartialEq for PropertyPreview
source§fn eq(&self, other: &PropertyPreview) -> bool
fn eq(&self, other: &PropertyPreview) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PropertyPreview
impl Serialize for PropertyPreview
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PropertyPreview
Auto Trait Implementations§
impl Freeze for PropertyPreview
impl RefUnwindSafe for PropertyPreview
impl Send for PropertyPreview
impl Sync for PropertyPreview
impl Unpin for PropertyPreview
impl UnwindSafe for PropertyPreview
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