Struct aws_sdk_auditmanager::types::ControlComment
source · #[non_exhaustive]pub struct ControlComment {
pub author_name: Option<String>,
pub comment_body: Option<String>,
pub posted_date: Option<DateTime>,
}
Expand description
A comment that's posted by a user on a control. This includes the author's name, the comment text, and a timestamp.
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.The name of the user who authored the comment.
comment_body: Option<String>
The body text of a control comment.
posted_date: Option<DateTime>
The time when the comment was posted.
Implementations§
source§impl ControlComment
impl ControlComment
The name of the user who authored the comment.
sourcepub fn comment_body(&self) -> Option<&str>
pub fn comment_body(&self) -> Option<&str>
The body text of a control comment.
sourcepub fn posted_date(&self) -> Option<&DateTime>
pub fn posted_date(&self) -> Option<&DateTime>
The time when the comment was posted.
source§impl ControlComment
impl ControlComment
sourcepub fn builder() -> ControlCommentBuilder
pub fn builder() -> ControlCommentBuilder
Creates a new builder-style object to manufacture ControlComment
.
Trait Implementations§
source§impl Clone for ControlComment
impl Clone for ControlComment
source§fn clone(&self) -> ControlComment
fn clone(&self) -> ControlComment
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 Debug for ControlComment
impl Debug for ControlComment
source§impl PartialEq for ControlComment
impl PartialEq for ControlComment
source§fn eq(&self, other: &ControlComment) -> bool
fn eq(&self, other: &ControlComment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ControlComment
Auto Trait Implementations§
impl Freeze for ControlComment
impl RefUnwindSafe for ControlComment
impl Send for ControlComment
impl Sync for ControlComment
impl Unpin for ControlComment
impl UnwindSafe for ControlComment
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>
Creates a shared type from an unshared type.