pub struct GetLayoutMetrics {
pub method: GetLayoutMetricsMethod,
pub params: GetLayoutMetricsParams,
}Expand description
Returns metrics relating to the layouting of the page, such as viewport bounds/scale. getLayoutMetrics
Fields§
§method: GetLayoutMetricsMethod§params: GetLayoutMetricsParamsImplementations§
Source§impl GetLayoutMetrics
impl GetLayoutMetrics
pub fn builder() -> GetLayoutMetricsBuilder
Source§impl GetLayoutMetrics
impl GetLayoutMetrics
pub const IDENTIFIER: &'static str = "Page.getLayoutMetrics"
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for GetLayoutMetrics
impl Clone for GetLayoutMetrics
Source§fn clone(&self) -> GetLayoutMetrics
fn clone(&self) -> GetLayoutMetrics
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 CommandResult for GetLayoutMetrics
impl CommandResult for GetLayoutMetrics
type Result = GetLayoutMetricsResult
fn result_from_value(result: Value) -> Result<Self::Result>
Source§impl Debug for GetLayoutMetrics
impl Debug for GetLayoutMetrics
Source§impl<'de> Deserialize<'de> for GetLayoutMetrics
impl<'de> Deserialize<'de> for GetLayoutMetrics
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
Source§impl From<GetLayoutMetrics> for BrowserProtocolCommands
impl From<GetLayoutMetrics> for BrowserProtocolCommands
Source§fn from(v: GetLayoutMetrics) -> Self
fn from(v: GetLayoutMetrics) -> Self
Converts to this type from the input type.
Source§impl From<GetLayoutMetrics> for Command
impl From<GetLayoutMetrics> for Command
Source§fn from(v: GetLayoutMetrics) -> Self
fn from(v: GetLayoutMetrics) -> Self
Converts to this type from the input type.
Source§impl From<GetLayoutMetrics> for PageCommands
impl From<GetLayoutMetrics> for PageCommands
Source§fn from(v: GetLayoutMetrics) -> Self
fn from(v: GetLayoutMetrics) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GetLayoutMetrics
impl PartialEq for GetLayoutMetrics
Source§impl Serialize for GetLayoutMetrics
impl Serialize for GetLayoutMetrics
Source§impl TryFrom<BrowserProtocolCommands> for GetLayoutMetrics
impl TryFrom<BrowserProtocolCommands> for GetLayoutMetrics
Source§type Error = BrowserProtocolCommands
type Error = BrowserProtocolCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: BrowserProtocolCommands,
) -> Result<Self, <GetLayoutMetrics as TryFrom<BrowserProtocolCommands>>::Error>
fn try_from( e: BrowserProtocolCommands, ) -> Result<Self, <GetLayoutMetrics as TryFrom<BrowserProtocolCommands>>::Error>
Performs the conversion.
Source§impl TryFrom<Command> for GetLayoutMetrics
impl TryFrom<Command> for GetLayoutMetrics
Source§impl TryFrom<PageCommands> for GetLayoutMetrics
impl TryFrom<PageCommands> for GetLayoutMetrics
Source§type Error = PageCommands
type Error = PageCommands
The type returned in the event of a conversion error.
Source§fn try_from(
e: PageCommands,
) -> Result<Self, <GetLayoutMetrics as TryFrom<PageCommands>>::Error>
fn try_from( e: PageCommands, ) -> Result<Self, <GetLayoutMetrics as TryFrom<PageCommands>>::Error>
Performs the conversion.
impl StructuralPartialEq for GetLayoutMetrics
Auto Trait Implementations§
impl Freeze for GetLayoutMetrics
impl RefUnwindSafe for GetLayoutMetrics
impl Send for GetLayoutMetrics
impl Sync for GetLayoutMetrics
impl Unpin for GetLayoutMetrics
impl UnsafeUnpin for GetLayoutMetrics
impl UnwindSafe for GetLayoutMetrics
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