#[non_exhaustive]pub struct DevicePoolCompatibilityResult {
pub device: Option<Device>,
pub compatible: Option<bool>,
pub incompatibility_messages: Option<Vec<IncompatibilityMessage>>,
}
Expand description
Represents a device pool compatibility result.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.device: Option<Device>
The device (phone or tablet) to return information about.
compatible: Option<bool>
Whether the result was compatible with the device pool.
incompatibility_messages: Option<Vec<IncompatibilityMessage>>
Information about the compatibility.
Implementations§
source§impl DevicePoolCompatibilityResult
impl DevicePoolCompatibilityResult
sourcepub fn device(&self) -> Option<&Device>
pub fn device(&self) -> Option<&Device>
The device (phone or tablet) to return information about.
sourcepub fn compatible(&self) -> Option<bool>
pub fn compatible(&self) -> Option<bool>
Whether the result was compatible with the device pool.
sourcepub fn incompatibility_messages(&self) -> &[IncompatibilityMessage]
pub fn incompatibility_messages(&self) -> &[IncompatibilityMessage]
Information about the compatibility.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .incompatibility_messages.is_none()
.
source§impl DevicePoolCompatibilityResult
impl DevicePoolCompatibilityResult
sourcepub fn builder() -> DevicePoolCompatibilityResultBuilder
pub fn builder() -> DevicePoolCompatibilityResultBuilder
Creates a new builder-style object to manufacture DevicePoolCompatibilityResult
.
Trait Implementations§
source§impl Clone for DevicePoolCompatibilityResult
impl Clone for DevicePoolCompatibilityResult
source§fn clone(&self) -> DevicePoolCompatibilityResult
fn clone(&self) -> DevicePoolCompatibilityResult
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 PartialEq for DevicePoolCompatibilityResult
impl PartialEq for DevicePoolCompatibilityResult
source§fn eq(&self, other: &DevicePoolCompatibilityResult) -> bool
fn eq(&self, other: &DevicePoolCompatibilityResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DevicePoolCompatibilityResult
Auto Trait Implementations§
impl Freeze for DevicePoolCompatibilityResult
impl RefUnwindSafe for DevicePoolCompatibilityResult
impl Send for DevicePoolCompatibilityResult
impl Sync for DevicePoolCompatibilityResult
impl Unpin for DevicePoolCompatibilityResult
impl UnwindSafe for DevicePoolCompatibilityResult
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> 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.