#[non_exhaustive]pub struct SetupIssue {
pub code: String,
pub message: String,
pub platform: Platform,
pub fix: Option<String>,
}Expand description
A single setup issue found during validation.
Part of SetupValidationReport. Each issue has a machine-readable code,
a human-readable message, the platform it applies to, and an optional fix.
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.code: StringMachine-readable error code (e.g. “android_fgs_type”).
message: StringHuman-readable description of the issue.
platform: PlatformThe platform this issue applies to.
fix: Option<String>Suggested fix for the issue.
Implementations§
Source§impl SetupIssue
impl SetupIssue
Sourcepub fn to_validation_issue(&self, severity: Severity) -> ValidationIssue
pub fn to_validation_issue(&self, severity: Severity) -> ValidationIssue
Convert this SetupIssue into a ValidationIssue with the given severity.
Trait Implementations§
Source§impl Clone for SetupIssue
impl Clone for SetupIssue
Source§fn clone(&self) -> SetupIssue
fn clone(&self) -> SetupIssue
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 SetupIssue
impl Debug for SetupIssue
Source§impl<'de> Deserialize<'de> for SetupIssue
impl<'de> Deserialize<'de> for SetupIssue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SetupIssue
impl PartialEq for SetupIssue
Source§fn eq(&self, other: &SetupIssue) -> bool
fn eq(&self, other: &SetupIssue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SetupIssue
impl Serialize for SetupIssue
impl StructuralPartialEq for SetupIssue
Auto Trait Implementations§
impl Freeze for SetupIssue
impl RefUnwindSafe for SetupIssue
impl Send for SetupIssue
impl Sync for SetupIssue
impl Unpin for SetupIssue
impl UnsafeUnpin for SetupIssue
impl UnwindSafe for SetupIssue
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§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
Source§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
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 more