pub enum CodegenStyle {
Direct,
Locator,
}Expand description
Controls whether generated code uses direct client methods or the Locator API.
Variants§
Direct
Generate client.click_by_id("btn") style calls.
Locator
Generate Locator::css("#btn").click(&mut client) style calls.
Trait Implementations§
Source§impl Clone for CodegenStyle
impl Clone for CodegenStyle
Source§fn clone(&self) -> CodegenStyle
fn clone(&self) -> CodegenStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodegenStyle
impl Debug for CodegenStyle
Source§impl Default for CodegenStyle
impl Default for CodegenStyle
Source§fn default() -> CodegenStyle
fn default() -> CodegenStyle
Returns the “default value” for a type. Read more
Source§impl PartialEq for CodegenStyle
impl PartialEq for CodegenStyle
Source§fn eq(&self, other: &CodegenStyle) -> bool
fn eq(&self, other: &CodegenStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CodegenStyle
impl Eq for CodegenStyle
impl StructuralPartialEq for CodegenStyle
Auto Trait Implementations§
impl Freeze for CodegenStyle
impl RefUnwindSafe for CodegenStyle
impl Send for CodegenStyle
impl Sync for CodegenStyle
impl Unpin for CodegenStyle
impl UnsafeUnpin for CodegenStyle
impl UnwindSafe for CodegenStyle
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