pub struct PreviewDiffFull {Show 18 fields
pub self_link: Option<Url>,
pub web_link: Option<Url>,
pub resource_type_link: Option<Url>,
pub http_etag: Option<String>,
pub added_lines_count: usize,
pub branch_merge_proposal_link: Url,
pub conflicts: Vec<String>,
pub date_created: DateTime<Utc>,
pub diff_lines_count: usize,
pub diff_text_link: Url,
pub diffstat: String,
pub id: String,
pub prerequisite_revision_id: String,
pub removed_lines_count: usize,
pub source_revision_id: String,
pub stale: bool,
pub target_revision_id: String,
pub title: String,
}
Expand description
Representation of the preview_diff-full
resource
Fields§
§self_link: Option<Url>
The canonical link to this resource.
web_link: Option<Url>
The canonical human-addressable web link to this resource.
resource_type_link: Option<Url>
The link to the WADL description of this resource.
http_etag: Option<String>
The value of the HTTP ETag for this resource.
added_lines_count: usize
The number of lines added in this diff.
branch_merge_proposal_link: Url
The branch merge proposal that diff relates to.
conflicts: Vec<String>
The conflicts text describing any path or text conflicts.
date_created: DateTime<Utc>
Date Created
When this diff was created.
diff_lines_count: usize
The number of lines in this diff.
diff_text_link: Url
Content of this diff
diffstat: String
Statistics about this diff
id: String
DB ID
The tracking number for this diff.
prerequisite_revision_id: String
The tip revision id of the prerequisite branch used to generate the diff.
removed_lines_count: usize
The number of lines removed in this diff.
source_revision_id: String
The tip revision id of the source branch used to generate the diff.
stale: bool
If the preview diff is stale, it is out of date when compared to the tip revisions of the source, target, and possibly prerequisite branches.
target_revision_id: String
The tip revision id of the target branch used to generate the diff.
title: String
Title
PreviewDiff title.
Implementations§
Source§impl PreviewDiffFull
impl PreviewDiffFull
Sourcepub fn self_(&self) -> Option<PreviewDiff>
pub fn self_(&self) -> Option<PreviewDiff>
The canonical link to this resource.
pub fn set_self_(&mut self, value: Option<PreviewDiff>)
Sourcepub fn branch_merge_proposal(&self) -> BranchMergeProposal
pub fn branch_merge_proposal(&self) -> BranchMergeProposal
The branch merge proposal that diff relates to.
pub fn set_branch_merge_proposal(&mut self, value: BranchMergeProposal)
Sourcepub fn diff_text(&self) -> HostedFile
pub fn diff_text(&self) -> HostedFile
Content of this diff
pub fn set_diff_text(&mut self, value: HostedFile)
Trait Implementations§
Source§impl Clone for PreviewDiffFull
impl Clone for PreviewDiffFull
Source§fn clone(&self) -> PreviewDiffFull
fn clone(&self) -> PreviewDiffFull
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more