#[non_exhaustive]pub struct Comment {
pub bug_feedback: Vec<BugFeedback>,
pub id: u32,
pub karma: Karma,
pub testcase_feedback: Vec<TestCaseFeedback>,
pub text: String,
pub timestamp: BodhiDate,
pub update: Option<Update>,
pub update_id: u32,
pub user: User,
pub user_id: u32,
pub extra: HashMap<String, Value>,
/* private fields */
}Expand description
data type that represents a comment on an update (including bug and test case feedback)
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.bug_feedback: Vec<BugFeedback>list of bug feedback items
id: u32numerical ID of this comment
karma: Karmakarma feedback associated with this comment
testcase_feedback: Vec<TestCaseFeedback>list of test case feedback items
text: Stringtext of the comment
timestamp: BodhiDatedate & time this comment was published
update: Option<Update>update this comment is associated with
update_id: u32ID of the update this comment is associated with
user: Useruser who submitted this comment
user_id: u32user ID of the user who submitted this comment
extra: HashMap<String, Value>catch-all for fields that are not explicitly deserialized
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnsafeUnpin 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