Struct aws_sdk_wellarchitected::model::Answer
source · [−]#[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
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
sourceimpl Answer
impl Answer
sourcepub fn question_id(&self) -> Option<&str>
pub fn question_id(&self) -> Option<&str>
The ID of the question.
sourcepub fn pillar_id(&self) -> Option<&str>
pub fn pillar_id(&self) -> Option<&str>
The ID used to identify a pillar, for example, security
.
A pillar is identified by its PillarReviewSummary$PillarId
.
sourcepub fn question_title(&self) -> Option<&str>
pub fn question_title(&self) -> Option<&str>
The title of the question.
sourcepub fn question_description(&self) -> Option<&str>
pub fn question_description(&self) -> Option<&str>
The description of the question.
sourcepub fn improvement_plan_url(&self) -> Option<&str>
pub fn improvement_plan_url(&self) -> Option<&str>
The improvement plan URL for a question.
This value is only available if the question has been answered.
sourcepub fn helpful_resource_url(&self) -> Option<&str>
pub fn helpful_resource_url(&self) -> Option<&str>
The helpful resource URL for a question.
sourcepub fn helpful_resource_display_text(&self) -> Option<&str>
pub fn helpful_resource_display_text(&self) -> Option<&str>
The helpful resource text to be displayed.
sourcepub fn selected_choices(&self) -> Option<&[String]>
pub fn selected_choices(&self) -> Option<&[String]>
List of selected choice IDs in a question answer.
The values entered replace the previously selected choices.
sourcepub fn choice_answers(&self) -> Option<&[ChoiceAnswer]>
pub fn choice_answers(&self) -> Option<&[ChoiceAnswer]>
A list of selected choices to a question in your workload.
sourcepub fn is_applicable(&self) -> bool
pub fn is_applicable(&self) -> bool
Defines whether this question is applicable to a lens review.
sourcepub fn risk(&self) -> Option<&Risk>
pub fn risk(&self) -> Option<&Risk>
The risk for a given workload, lens review, pillar, or question.
sourcepub fn reason(&self) -> Option<&AnswerReason>
pub fn reason(&self) -> Option<&AnswerReason>
The reason why the question is not applicable to your workload.
Trait Implementations
impl StructuralPartialEq for Answer
Auto Trait Implementations
impl RefUnwindSafe for Answer
impl Send for Answer
impl Sync for Answer
impl Unpin for Answer
impl UnwindSafe for Answer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more