#[non_exhaustive]pub enum CodegenStyle {
Direct,
Locator,
}Expand description
Controls whether generated code uses direct client methods or the Locator API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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
impl Copy for CodegenStyle
Source§impl Debug for CodegenStyle
impl Debug for CodegenStyle
Source§impl Default for CodegenStyle
impl Default for CodegenStyle
impl Eq for CodegenStyle
Source§impl PartialEq for CodegenStyle
impl PartialEq 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