#[non_exhaustive]pub struct DevicePoolCompatibilityResultBuilder { /* private fields */ }Expand description
A builder for DevicePoolCompatibilityResult.
Implementations§
source§impl DevicePoolCompatibilityResultBuilder
impl DevicePoolCompatibilityResultBuilder
sourcepub fn device(self, input: Device) -> Self
pub fn device(self, input: Device) -> Self
The device (phone or tablet) to return information about.
sourcepub fn set_device(self, input: Option<Device>) -> Self
pub fn set_device(self, input: Option<Device>) -> Self
The device (phone or tablet) to return information about.
sourcepub fn get_device(&self) -> &Option<Device>
pub fn get_device(&self) -> &Option<Device>
The device (phone or tablet) to return information about.
sourcepub fn compatible(self, input: bool) -> Self
pub fn compatible(self, input: bool) -> Self
Whether the result was compatible with the device pool.
sourcepub fn set_compatible(self, input: Option<bool>) -> Self
pub fn set_compatible(self, input: Option<bool>) -> Self
Whether the result was compatible with the device pool.
sourcepub fn get_compatible(&self) -> &Option<bool>
pub fn get_compatible(&self) -> &Option<bool>
Whether the result was compatible with the device pool.
sourcepub fn incompatibility_messages(self, input: IncompatibilityMessage) -> Self
pub fn incompatibility_messages(self, input: IncompatibilityMessage) -> Self
Appends an item to incompatibility_messages.
To override the contents of this collection use set_incompatibility_messages.
Information about the compatibility.
sourcepub fn set_incompatibility_messages(
self,
input: Option<Vec<IncompatibilityMessage>>,
) -> Self
pub fn set_incompatibility_messages( self, input: Option<Vec<IncompatibilityMessage>>, ) -> Self
Information about the compatibility.
sourcepub fn get_incompatibility_messages(
&self,
) -> &Option<Vec<IncompatibilityMessage>>
pub fn get_incompatibility_messages( &self, ) -> &Option<Vec<IncompatibilityMessage>>
Information about the compatibility.
sourcepub fn build(self) -> DevicePoolCompatibilityResult
pub fn build(self) -> DevicePoolCompatibilityResult
Consumes the builder and constructs a DevicePoolCompatibilityResult.
Trait Implementations§
source§impl Clone for DevicePoolCompatibilityResultBuilder
impl Clone for DevicePoolCompatibilityResultBuilder
source§fn clone(&self) -> DevicePoolCompatibilityResultBuilder
fn clone(&self) -> DevicePoolCompatibilityResultBuilder
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 Default for DevicePoolCompatibilityResultBuilder
impl Default for DevicePoolCompatibilityResultBuilder
source§fn default() -> DevicePoolCompatibilityResultBuilder
fn default() -> DevicePoolCompatibilityResultBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DevicePoolCompatibilityResultBuilder
impl PartialEq for DevicePoolCompatibilityResultBuilder
source§fn eq(&self, other: &DevicePoolCompatibilityResultBuilder) -> bool
fn eq(&self, other: &DevicePoolCompatibilityResultBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DevicePoolCompatibilityResultBuilder
Auto Trait Implementations§
impl Freeze for DevicePoolCompatibilityResultBuilder
impl RefUnwindSafe for DevicePoolCompatibilityResultBuilder
impl Send for DevicePoolCompatibilityResultBuilder
impl Sync for DevicePoolCompatibilityResultBuilder
impl Unpin for DevicePoolCompatibilityResultBuilder
impl UnwindSafe for DevicePoolCompatibilityResultBuilder
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
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.