#[non_exhaustive]pub struct Comment {
pub name: String,
pub create_time: Option<Timestamp>,
pub creator: Option<Actor>,
pub body: String,
pub plain_text_body: String,
/* private fields */
}Expand description
A comment associated with a support case.
Case comments are the primary way for Google Support to communicate with a user who has opened a case. When a user responds to Google Support, the user’s responses also appear as comments.
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.name: StringOutput only. Identifier. The resource name of the comment.
create_time: Option<Timestamp>Output only. The time when the comment was created.
creator: Option<Actor>Output only. The user or Google Support agent who created the comment.
body: StringThe full comment body.
Maximum of 12800 characters.
plain_text_body: String👎Deprecated
Output only. DEPRECATED. DO NOT USE.
A duplicate of the body field.
This field is only present for legacy reasons.
Implementations§
Source§impl Comment
impl Comment
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_creator<T>(self, v: T) -> Self
pub fn set_creator<T>(self, v: T) -> Self
Sets the value of creator.
Sourcepub fn set_or_clear_creator<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creator<T>(self, v: Option<T>) -> Self
Sets or clears the value of creator.
Sourcepub fn set_plain_text_body<T: Into<String>>(self, v: T) -> Self
👎Deprecated
pub fn set_plain_text_body<T: Into<String>>(self, v: T) -> Self
Sets the value of plain_text_body.
Trait Implementations§
impl StructuralPartialEq for Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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