pub struct WebhooksComment {Show 13 fields
pub author_association: AuthorAssociation,
pub body: String,
pub child_comment_count: i32,
pub created_at: String,
pub discussion_id: i32,
pub html_url: String,
pub id: i32,
pub node_id: String,
pub parent_id: Option<i32>,
pub reactions: Box<Reactions>,
pub repository_url: String,
pub updated_at: String,
pub user: Option<Box<User>>,
}
Fields§
How the author is associated with the repository.
body: String
§child_comment_count: i32
§created_at: String
§discussion_id: i32
§html_url: String
§id: i32
§node_id: String
§parent_id: Option<i32>
§reactions: Box<Reactions>
§repository_url: String
§updated_at: String
§user: Option<Box<User>>
Implementations§
Source§impl WebhooksComment
impl WebhooksComment
pub fn new( author_association: AuthorAssociation, body: String, child_comment_count: i32, created_at: String, discussion_id: i32, html_url: String, id: i32, node_id: String, parent_id: Option<i32>, reactions: Reactions, repository_url: String, updated_at: String, user: Option<User>, ) -> WebhooksComment
Trait Implementations§
Source§impl Clone for WebhooksComment
impl Clone for WebhooksComment
Source§fn clone(&self) -> WebhooksComment
fn clone(&self) -> WebhooksComment
Returns a duplicate 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 WebhooksComment
impl Debug for WebhooksComment
Source§impl Default for WebhooksComment
impl Default for WebhooksComment
Source§fn default() -> WebhooksComment
fn default() -> WebhooksComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhooksComment
impl<'de> Deserialize<'de> for WebhooksComment
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 WebhooksComment
impl PartialEq for WebhooksComment
Source§impl Serialize for WebhooksComment
impl Serialize for WebhooksComment
impl StructuralPartialEq for WebhooksComment
Auto Trait Implementations§
impl Freeze for WebhooksComment
impl RefUnwindSafe for WebhooksComment
impl Send for WebhooksComment
impl Sync for WebhooksComment
impl Unpin for WebhooksComment
impl UnwindSafe for WebhooksComment
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