pub struct ReposCreateCommitCommentRequest {
pub body: String,
pub path: Option<String>,
pub position: Option<i32>,
pub line: Option<i32>,
}
Fields§
§body: String
The contents of the comment.
path: Option<String>
Relative path of the file to comment on.
position: Option<i32>
Line index in the diff to comment on.
line: Option<i32>
Deprecated. Use position parameter instead. Line number in the file to comment on.
Implementations§
Source§impl ReposCreateCommitCommentRequest
impl ReposCreateCommitCommentRequest
pub fn new(body: String) -> ReposCreateCommitCommentRequest
Trait Implementations§
Source§impl Clone for ReposCreateCommitCommentRequest
impl Clone for ReposCreateCommitCommentRequest
Source§fn clone(&self) -> ReposCreateCommitCommentRequest
fn clone(&self) -> ReposCreateCommitCommentRequest
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 Default for ReposCreateCommitCommentRequest
impl Default for ReposCreateCommitCommentRequest
Source§fn default() -> ReposCreateCommitCommentRequest
fn default() -> ReposCreateCommitCommentRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReposCreateCommitCommentRequest
impl<'de> Deserialize<'de> for ReposCreateCommitCommentRequest
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 ReposCreateCommitCommentRequest
impl PartialEq for ReposCreateCommitCommentRequest
Source§fn eq(&self, other: &ReposCreateCommitCommentRequest) -> bool
fn eq(&self, other: &ReposCreateCommitCommentRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReposCreateCommitCommentRequest
Auto Trait Implementations§
impl Freeze for ReposCreateCommitCommentRequest
impl RefUnwindSafe for ReposCreateCommitCommentRequest
impl Send for ReposCreateCommitCommentRequest
impl Sync for ReposCreateCommitCommentRequest
impl Unpin for ReposCreateCommitCommentRequest
impl UnwindSafe for ReposCreateCommitCommentRequest
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