pub struct CommentInput {
pub kind: Option<String>,
pub id: Option<String>,
pub path: Option<String>,
pub side: Option<String>,
pub line: Option<u64>,
pub range: Option<CommentRange>,
pub in_reply_to: Option<String>,
pub updated: Option<String>,
pub message: Option<String>,
pub tag: Option<String>,
}
Expand description
The CommentInput
entity contains information for creating an inline comment
Fields§
§kind: Option<String>
Must be gerritcodereview#comment if provided. V02.09
id: Option<String>
The URL encoded UUID of the comment if an existing draft comment should be updated. V02.09
path: Option<String>
The path of the file for which the inline comment should be added. Doesn’t need to be set if contained in a map where the key is the file path. V02.09
side: Option<String>
The side on which the comment should be added. Allowed values are REVISION and PARENT. If not set, the default is REVISION. V02.09
line: Option<u64>
The number of the line for which the comment should be added. 0 if it is a file comment. If neither line nor range is set, a file comment is added. If range is set, this should equal the end line of the range. V02.09
range: Option<CommentRange>
The range of the comment as a CommentRange entity. V02.09
in_reply_to: Option<String>
The URL encoded UUID of the comment to which this comment is a reply. V02.09
updated: Option<String>
The timestamp of this comment. Accepted but ignored. V02.09
message: Option<String>
The comment message. If not set and an existing draft comment is updated, the existing draft comment is deleted. V02.09
tag: Option<String>
Value of the tag field. Only allowed on draft comment inputs; for published comments, use the tag field in link#review-inputReviewInput V02.13
Trait Implementations§
Source§impl Clone for CommentInput
impl Clone for CommentInput
Source§fn clone(&self) -> CommentInput
fn clone(&self) -> CommentInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more