Enum webdriver::command::NewSessionParameters
source · pub enum NewSessionParameters {
Spec(SpecNewSessionParameters),
Legacy(LegacyNewSessionParameters),
}
Expand description
Wrapper around the two supported variants of new session paramters.
The Spec variant is used for storing spec-compliant parameters whereas
the legacy variant is used to store desiredCapabilities
/requiredCapabilities
parameters, and is intended to minimise breakage as we transition users to
the spec design.
Variants§
Spec(SpecNewSessionParameters)
Legacy(LegacyNewSessionParameters)
Trait Implementations§
source§impl CapabilitiesMatching for NewSessionParameters
impl CapabilitiesMatching for NewSessionParameters
source§fn match_browser<T: BrowserCapabilities>(
&self,
browser_capabilities: &mut T,
) -> WebDriverResult<Option<Capabilities>>
fn match_browser<T: BrowserCapabilities>( &self, browser_capabilities: &mut T, ) -> WebDriverResult<Option<Capabilities>>
Match the BrowserCapabilities against some candidate capabilites Read more
source§impl Debug for NewSessionParameters
impl Debug for NewSessionParameters
source§impl<'de> Deserialize<'de> for NewSessionParameters
impl<'de> Deserialize<'de> for NewSessionParameters
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 PartialEq for NewSessionParameters
impl PartialEq for NewSessionParameters
source§fn eq(&self, other: &NewSessionParameters) -> bool
fn eq(&self, other: &NewSessionParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NewSessionParameters
Auto Trait Implementations§
impl Freeze for NewSessionParameters
impl RefUnwindSafe for NewSessionParameters
impl Send for NewSessionParameters
impl Sync for NewSessionParameters
impl Unpin for NewSessionParameters
impl UnwindSafe for NewSessionParameters
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