Struct aws_sdk_workdocs::model::Comment
source · [−]#[non_exhaustive]pub struct Comment {
pub comment_id: Option<String>,
pub parent_id: Option<String>,
pub thread_id: Option<String>,
pub text: Option<String>,
pub contributor: Option<User>,
pub created_timestamp: Option<DateTime>,
pub status: Option<CommentStatusType>,
pub visibility: Option<CommentVisibilityType>,
pub recipient_id: Option<String>,
}
Expand description
Describes a comment.
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.comment_id: Option<String>
The ID of the comment.
parent_id: Option<String>
The ID of the parent comment.
thread_id: Option<String>
The ID of the root comment in the thread.
text: Option<String>
The text of the comment.
contributor: Option<User>
The details of the user who made the comment.
created_timestamp: Option<DateTime>
The time that the comment was created.
status: Option<CommentStatusType>
The status of the comment.
visibility: Option<CommentVisibilityType>
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
recipient_id: Option<String>
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
Implementations
sourceimpl Comment
impl Comment
sourcepub fn comment_id(&self) -> Option<&str>
pub fn comment_id(&self) -> Option<&str>
The ID of the comment.
sourcepub fn contributor(&self) -> Option<&User>
pub fn contributor(&self) -> Option<&User>
The details of the user who made the comment.
sourcepub fn created_timestamp(&self) -> Option<&DateTime>
pub fn created_timestamp(&self) -> Option<&DateTime>
The time that the comment was created.
sourcepub fn status(&self) -> Option<&CommentStatusType>
pub fn status(&self) -> Option<&CommentStatusType>
The status of the comment.
sourcepub fn visibility(&self) -> Option<&CommentVisibilityType>
pub fn visibility(&self) -> Option<&CommentVisibilityType>
The visibility of the comment. Options are either PRIVATE, where the comment is visible only to the comment author and document owner and co-owners, or PUBLIC, where the comment is visible to document owners, co-owners, and contributors.
sourcepub fn recipient_id(&self) -> Option<&str>
pub fn recipient_id(&self) -> Option<&str>
If the comment is a reply to another user's comment, this field contains the user ID of the user being replied to.
Trait Implementations
impl StructuralPartialEq for Comment
Auto Trait Implementations
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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> 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