pub struct SetPressureDataOverrideParams {
pub source: PressureSource,
pub state: PressureState,
pub own_contribution_estimate: Option<f64>,
}Expand description
Provides a given pressure data set that will be processed and eventually be delivered to PressureObserver users. |source| must have been previously overridden by setPressureSourceOverrideEnabled. setPressureDataOverride
Fields§
§source: PressureSource§state: PressureState§own_contribution_estimate: Option<f64>Implementations§
Source§impl SetPressureDataOverrideParams
impl SetPressureDataOverrideParams
pub fn new( source: impl Into<PressureSource>, state: impl Into<PressureState>, ) -> SetPressureDataOverrideParams
Source§impl SetPressureDataOverrideParams
impl SetPressureDataOverrideParams
pub fn builder() -> SetPressureDataOverrideParamsBuilder
Source§impl SetPressureDataOverrideParams
impl SetPressureDataOverrideParams
pub const IDENTIFIER: &'static str = "Emulation.setPressureDataOverride"
Trait Implementations§
Source§impl Clone for SetPressureDataOverrideParams
impl Clone for SetPressureDataOverrideParams
Source§fn clone(&self) -> SetPressureDataOverrideParams
fn clone(&self) -> SetPressureDataOverrideParams
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<'de> Deserialize<'de> for SetPressureDataOverrideParams
impl<'de> Deserialize<'de> for SetPressureDataOverrideParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetPressureDataOverrideParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SetPressureDataOverrideParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Method for SetPressureDataOverrideParams
impl Method for SetPressureDataOverrideParams
Source§fn identifier(&self) -> Cow<'static, str>
fn identifier(&self) -> Cow<'static, str>
The whole string identifier for this method like:
DOM.removeNodeSource§fn domain_name(&self) -> Cow<'static, str>
fn domain_name(&self) -> Cow<'static, str>
The name of the domain this method belongs to:
DOMSource§fn method_name(&self) -> Cow<'static, str>
fn method_name(&self) -> Cow<'static, str>
The standalone identifier of the method inside the domain:
removeNodeSource§impl PartialEq for SetPressureDataOverrideParams
impl PartialEq for SetPressureDataOverrideParams
Source§fn eq(&self, other: &SetPressureDataOverrideParams) -> bool
fn eq(&self, other: &SetPressureDataOverrideParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SetPressureDataOverrideParams
impl Serialize for SetPressureDataOverrideParams
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 SetPressureDataOverrideParams
Auto Trait Implementations§
impl Freeze for SetPressureDataOverrideParams
impl RefUnwindSafe for SetPressureDataOverrideParams
impl Send for SetPressureDataOverrideParams
impl Sync for SetPressureDataOverrideParams
impl Unpin for SetPressureDataOverrideParams
impl UnwindSafe for SetPressureDataOverrideParams
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