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: usizeThe number of lines added in this diff.
branch_merge_proposal_link: UrlThe 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: usizeThe number of lines in this diff.
diff_text_link: UrlContent of this diff
diffstat: StringStatistics about this diff
id: StringDB ID
The tracking number for this diff.
prerequisite_revision_id: StringThe tip revision id of the prerequisite branch used to generate the diff.
removed_lines_count: usizeThe number of lines removed in this diff.
source_revision_id: StringThe tip revision id of the source branch used to generate the diff.
stale: boolIf 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: StringThe tip revision id of the target branch used to generate the diff.
title: StringTitle
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.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for PreviewDiffFull
impl Debug for PreviewDiffFull
source§impl<'de> Deserialize<'de> for PreviewDiffFull
impl<'de> Deserialize<'de> for PreviewDiffFull
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>,
source§impl PartialEq for PreviewDiffFull
impl PartialEq for PreviewDiffFull
source§impl Serialize for PreviewDiffFull
impl Serialize for PreviewDiffFull
impl StructuralPartialEq for PreviewDiffFull
Auto Trait Implementations§
impl Freeze for PreviewDiffFull
impl RefUnwindSafe for PreviewDiffFull
impl Send for PreviewDiffFull
impl Sync for PreviewDiffFull
impl Unpin for PreviewDiffFull
impl UnwindSafe for PreviewDiffFull
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)