#[non_exhaustive]pub struct Comment {Show 14 fields
pub html_url: Url,
pub url: Url,
pub id: CommentId,
pub node_id: String,
pub body: Option<String>,
pub path: Option<String>,
pub position: Option<u64>,
pub line: Option<u64>,
pub commit_id: String,
pub user: Author,
pub created_at: DateTime<Utc>,
pub updated_at: Option<DateTime<Utc>>,
pub author_association: AuthorAssociation,
pub reactions: Option<CommentReactions>,
}
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.html_url: Url
§url: Url
§id: CommentId
§node_id: String
§body: Option<String>
§path: Option<String>
§position: Option<u64>
§line: Option<u64>
§commit_id: String
§user: Author
§created_at: DateTime<Utc>
§updated_at: Option<DateTime<Utc>>
§reactions: Option<CommentReactions>
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
source§impl PartialEq for Comment
impl PartialEq for Comment
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