Struct aws_sdk_devicefarm::types::builders::ResolutionBuilder
source · #[non_exhaustive]pub struct ResolutionBuilder { /* private fields */ }Expand description
A builder for Resolution.
Implementations§
source§impl ResolutionBuilder
impl ResolutionBuilder
sourcepub fn set_width(self, input: Option<i32>) -> Self
pub fn set_width(self, input: Option<i32>) -> Self
The screen resolution's width, expressed in pixels.
sourcepub fn set_height(self, input: Option<i32>) -> Self
pub fn set_height(self, input: Option<i32>) -> Self
The screen resolution's height, expressed in pixels.
sourcepub fn get_height(&self) -> &Option<i32>
pub fn get_height(&self) -> &Option<i32>
The screen resolution's height, expressed in pixels.
sourcepub fn build(self) -> Resolution
pub fn build(self) -> Resolution
Consumes the builder and constructs a Resolution.
Trait Implementations§
source§impl Clone for ResolutionBuilder
impl Clone for ResolutionBuilder
source§fn clone(&self) -> ResolutionBuilder
fn clone(&self) -> ResolutionBuilder
Returns a copy 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 Debug for ResolutionBuilder
impl Debug for ResolutionBuilder
source§impl Default for ResolutionBuilder
impl Default for ResolutionBuilder
source§fn default() -> ResolutionBuilder
fn default() -> ResolutionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResolutionBuilder
impl PartialEq for ResolutionBuilder
source§fn eq(&self, other: &ResolutionBuilder) -> bool
fn eq(&self, other: &ResolutionBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResolutionBuilder
Auto Trait Implementations§
impl Freeze for ResolutionBuilder
impl RefUnwindSafe for ResolutionBuilder
impl Send for ResolutionBuilder
impl Sync for ResolutionBuilder
impl Unpin for ResolutionBuilder
impl UnwindSafe for ResolutionBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.