Struct github_rest::model::commits::comments::CommitComment
source · pub struct CommitComment {Show 14 fields
pub url: String,
pub html_url: String,
pub id: i64,
pub node_id: String,
pub user: Option<SimpleUser>,
pub position: Option<i64>,
pub line: Option<i64>,
pub path: Option<String>,
pub commit_id: String,
pub body: String,
pub author_association: Association,
pub created_at: String,
pub updated_at: String,
pub reactions: Option<ReactionRollup>,
}
Expand description
Fields§
§url: String
§html_url: String
§id: i64
§node_id: String
§user: Option<SimpleUser>
§position: Option<i64>
§line: Option<i64>
§path: Option<String>
§commit_id: String
§body: String
§created_at: String
§updated_at: String
§reactions: Option<ReactionRollup>
Implementations§
source§impl CommitComment
impl CommitComment
pub async fn add_reaction<T>( &self, client: &T, reaction: Reaction ) -> Result<CommitCommentReactionCreated, GithubRestError>where T: Requester,
Trait Implementations§
source§impl Clone for CommitComment
impl Clone for CommitComment
source§fn clone(&self) -> CommitComment
fn clone(&self) -> CommitComment
Returns a copy 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 CommitComment
impl Debug for CommitComment
source§impl Default for CommitComment
impl Default for CommitComment
source§fn default() -> CommitComment
fn default() -> CommitComment
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommitComment
impl<'de> Deserialize<'de> for CommitComment
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<CommitComment> for CommitComment
impl PartialEq<CommitComment> for CommitComment
source§fn eq(&self, other: &CommitComment) -> bool
fn eq(&self, other: &CommitComment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CommitComment
impl Serialize for CommitComment
impl StructuralPartialEq for CommitComment
Auto Trait Implementations§
impl RefUnwindSafe for CommitComment
impl Send for CommitComment
impl Sync for CommitComment
impl Unpin for CommitComment
impl UnwindSafe for CommitComment
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