#[non_exhaustive]
pub struct Answer {
Show 14 fields pub question_id: Option<String>, pub pillar_id: Option<String>, pub question_title: Option<String>, pub question_description: Option<String>, pub improvement_plan_url: Option<String>, pub helpful_resource_url: Option<String>, pub helpful_resource_display_text: Option<String>, pub choices: Option<Vec<Choice>>, pub selected_choices: Option<Vec<String>>, pub choice_answers: Option<Vec<ChoiceAnswer>>, pub is_applicable: bool, pub risk: Option<Risk>, pub notes: Option<String>, pub reason: Option<AnswerReason>,
}
Expand description

An answer of the question.

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.
question_id: Option<String>

The ID of the question.

pillar_id: Option<String>

The ID used to identify a pillar, for example, security.

A pillar is identified by its PillarReviewSummary$PillarId.

question_title: Option<String>

The title of the question.

question_description: Option<String>

The description of the question.

improvement_plan_url: Option<String>

The improvement plan URL for a question.

This value is only available if the question has been answered.

helpful_resource_url: Option<String>

The helpful resource URL for a question.

helpful_resource_display_text: Option<String>

The helpful resource text to be displayed.

choices: Option<Vec<Choice>>

List of choices available for a question.

selected_choices: Option<Vec<String>>

List of selected choice IDs in a question answer.

The values entered replace the previously selected choices.

choice_answers: Option<Vec<ChoiceAnswer>>

A list of selected choices to a question in your workload.

is_applicable: bool

Defines whether this question is applicable to a lens review.

risk: Option<Risk>

The risk for a given workload, lens review, pillar, or question.

notes: Option<String>

The notes associated with the workload.

reason: Option<AnswerReason>

The reason why the question is not applicable to your workload.

Implementations

The ID of the question.

The ID used to identify a pillar, for example, security.

A pillar is identified by its PillarReviewSummary$PillarId.

The title of the question.

The description of the question.

The improvement plan URL for a question.

This value is only available if the question has been answered.

The helpful resource URL for a question.

The helpful resource text to be displayed.

List of choices available for a question.

List of selected choice IDs in a question answer.

The values entered replace the previously selected choices.

A list of selected choices to a question in your workload.

Defines whether this question is applicable to a lens review.

The risk for a given workload, lens review, pillar, or question.

The notes associated with the workload.

The reason why the question is not applicable to your workload.

Creates a new builder-style object to manufacture Answer

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more