pub struct ReviewInput {
pub message: Option<String>,
pub labels: Option<HashMap<String, i8>>,
pub comments: Option<HashMap<String, CommentInput>>,
pub strict_labels: Option<bool>,
pub drafts: Option<String>,
pub notify: Option<String>,
pub on_behalf_of: Option<String>,
pub tag: Option<String>,
pub omit_duplicate_comments: Option<bool>,
}
Expand description
The ReviewInput
entity contains information for adding a review to a revision
Fields§
§message: Option<String>
The message to be added as review comment. V02.09
labels: Option<HashMap<String, i8>>
The votes that should be added to the revision as a map that maps the label names to the voting values. V02.09
comments: Option<HashMap<String, CommentInput>>
The comments that should be added as a map that maps a file path to a list of CommentInput entities. V02.09
strict_labels: Option<bool>
Whether all labels are required to be within the user’s permitted ranges based on access controls. If true, attempting to use a label not granted to the user will fail the entire modify operation early. If false, the operation will execute anyway, but the proposed labels will be modified to be the “best” value allowed by the access controls. V02.09
drafts: Option<String>
Draft handling that defines how draft comments are handled that are already in the database but that were not also described in this input. Allowed values are DELETE, PUBLISH and KEEP. If not set, the default is DELETE. V02.09
notify: Option<String>
Notify handling that defines to whom email notifications should be sent after the review is stored. Allowed values are NONE, OWNER, OWNER_REVIEWERS and ALL. If not set, the default is ALL. V02.09
on_behalf_of: Option<String>
{account-id} the review should be posted on behalf of. To use this option the caller must have been granted labelAs-NAME permission for all keys of labels. V02.09
tag: Option<String>
Apply this tag to the review comment message, votes, and inline comments. Tags may be used by CI or other automated systems to distinguish them from human reviews. Comments with specific tag values can be filtered out in the web UI. V02.13
omit_duplicate_comments: Option<bool>
If true, comments with the same content at the same place will be omitted V02.13
Trait Implementations§
Source§impl Clone for ReviewInput
impl Clone for ReviewInput
Source§fn clone(&self) -> ReviewInput
fn clone(&self) -> ReviewInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more