pub struct GetContainerForNodeParams {
pub node_id: NodeId,
pub container_name: Option<String>,
pub physical_axes: Option<PhysicalAxes>,
pub logical_axes: Option<LogicalAxes>,
pub queries_scroll_state: Option<bool>,
pub queries_anchored: Option<bool>,
}Expand description
Returns the query container of the given node based on container query conditions: containerName, physical and logical axes, and whether it queries scroll-state or anchored elements. If no axes are provided and queriesScrollState is false, the style container is returned, which is the direct parent or the closest element with a matching container-name.
Experimental: may change without notice.
Parameters of DOM.getContainerForNode.
Fields§
§node_id: NodeId§container_name: Option<String>§physical_axes: Option<PhysicalAxes>§logical_axes: Option<LogicalAxes>§queries_scroll_state: Option<bool>§queries_anchored: Option<bool>Trait Implementations§
Source§impl Clone for GetContainerForNodeParams
impl Clone for GetContainerForNodeParams
Source§impl Command for GetContainerForNodeParams
impl Command for GetContainerForNodeParams
Source§impl Debug for GetContainerForNodeParams
impl Debug for GetContainerForNodeParams
Source§impl Default for GetContainerForNodeParams
impl Default for GetContainerForNodeParams
Source§impl<'de> Deserialize<'de> for GetContainerForNodeParams
impl<'de> Deserialize<'de> for GetContainerForNodeParams
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
impl StructuralPartialEq for GetContainerForNodeParams
Auto Trait Implementations§
impl Forget for GetContainerForNodeParams
impl Freeze for GetContainerForNodeParams
impl RefUnwindSafe for GetContainerForNodeParams
impl Send for GetContainerForNodeParams
impl Sync for GetContainerForNodeParams
impl Unpin for GetContainerForNodeParams
impl UnsafeUnpin for GetContainerForNodeParams
impl UnwindSafe for GetContainerForNodeParams
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