pub struct GitLabReviewPosition {
pub base_sha: Option<String>,
pub start_sha: Option<String>,
pub head_sha: Option<String>,
pub position_type: GitLabReviewPositionType,
pub old_path: String,
pub new_path: String,
pub new_line: u32,
}Expand description
position block inside GitLabReviewComment. Mirrors the GitLab
merge-request discussion-position API.
Fields§
§base_sha: Option<String>Merge-base SHA of the MR diff; absent when refs were not supplied.
start_sha: Option<String>First commit SHA of the MR diff; absent when refs were not supplied.
head_sha: Option<String>Head commit SHA of the MR diff; absent when refs were not supplied.
position_type: GitLabReviewPositionTypePosition type; always text.
old_path: StringPre-rename path when the diff renamed the file, else the same as
new_path.
new_path: StringFile path on the new side of the diff.
new_line: u321-based line on the new side of the diff.
Trait Implementations§
Source§impl Clone for GitLabReviewPosition
impl Clone for GitLabReviewPosition
Source§impl Debug for GitLabReviewPosition
impl Debug for GitLabReviewPosition
Auto Trait Implementations§
impl Freeze for GitLabReviewPosition
impl RefUnwindSafe for GitLabReviewPosition
impl Send for GitLabReviewPosition
impl Sync for GitLabReviewPosition
impl Unpin for GitLabReviewPosition
impl UnsafeUnpin for GitLabReviewPosition
impl UnwindSafe for GitLabReviewPosition
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