Struct launchpadlib::v1_0::PreviewDiffFull
source · pub struct PreviewDiffFull {Show 13 fields
pub http_etag: Option<String>,
pub added_lines_count: usize,
pub conflicts: Vec<String>,
pub date_created: DateTime<Utc>,
pub diff_lines_count: usize,
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,
/* private fields */
}
Expand description
Representation of the preview_diff-full
resource
Fields§
§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.
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.
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 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§fn eq(&self, other: &PreviewDiffFull) -> bool
fn eq(&self, other: &PreviewDiffFull) -> bool
self
and other
values to be equal, and is used
by ==
.