launchpadlib::v1_0

Struct BranchMergeProposalFull

source
pub struct BranchMergeProposalFull {
Show 34 fields pub self_link: Option<Url>, pub web_link: Option<Url>, pub resource_type_link: Option<Url>, pub http_etag: Option<String>, pub address: String, pub all_comments_collection_link: Url, pub commit_message: String, pub date_created: DateTime<Utc>, pub date_merged: DateTime<Utc>, pub date_review_requested: DateTime<Utc>, pub date_reviewed: DateTime<Utc>, pub description: String, pub merge_reporter_link: Url, pub merged_revision_id: String, pub merged_revno: i64, pub prerequisite_branch_link: Url, pub prerequisite_git_path: String, pub prerequisite_git_repository_link: Url, pub preview_diff_link: Url, pub preview_diffs_collection_link: Url, pub private: bool, pub queue_status: MergeProposalStatus, pub registrant_link: Url, pub reviewed_revid: String, pub reviewer_link: Url, pub source_branch_link: Url, pub source_git_path: String, pub source_git_repository_link: Url, pub superseded_by_link: Url, pub supersedes_link: Url, pub target_branch_link: Url, pub target_git_path: String, pub target_git_repository_link: Url, pub votes_collection_link: Url,
}
Expand description

Representation of the branch_merge_proposal-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.

§address: String

The email address for this proposal.

Any emails sent to this address will resultin comments being added.

§all_comments_collection_link: Url

All messages discussing this merge proposal

§commit_message: String

Commit message

The commit message that should be used when merging the source branch.

§date_created: DateTime<Utc>

Date created

§date_merged: DateTime<Utc>

Date merged

The date that the source branch was merged into the target branch

§date_review_requested: DateTime<Utc>

Date review requested

§date_reviewed: DateTime<Utc>

Date reviewed

§description: String

Description

A detailed description of the changes that are being addressed by the branch being proposed to be merged.

§merge_reporter_link: Url

Merge reporter

The user that marked the branch as merged.

§merged_revision_id: String

Merged revision ID

The revision ID on the target branch which contains the merge from the source branch (currently Git only).

§merged_revno: i64

Merged revision number

The revision number on the target branch which contains the merge from the source branch (Bazaar only).

§prerequisite_branch_link: Url

Prerequisite branch

The branch that the source branch branched from. If this branch is the same as the target branch, then leave this field blank.

§prerequisite_git_path: String

Prerequisite Git branch path

The path of the Git branch that the source branch branched from. If this branch is the same as the target branch, then leave this field blank.

§prerequisite_git_repository_link: Url

Prerequisite Git repository

The Git repository containing the branch that the source branch branched from. If this branch is the same as the target branch, then leave this field blank.

§preview_diff_link: Url

The current diff of the source branch against the target branch.

§preview_diffs_collection_link: Url

All preview diffs for this merge proposal.

§private: bool

Proposal is confidential

If True, this proposal is visible only to subscribers.

§queue_status: MergeProposalStatus

Status

The current state of the proposal.

§registrant_link: Url

Person

The person who registered the merge proposal.

§reviewed_revid: String

The revision id that has been approved by the reviewer.

§reviewer_link: Url

Review person or team

The person that accepted (or rejected) the code for merging.

§source_branch_link: Url

Source branch

The branch that has code to land.

§source_git_path: String

Source Git branch path

The path of the Git branch that has code to land.

§source_git_repository_link: Url

Source Git repository

The Git repository that has code to land.

§superseded_by_link: Url

Superseded by

The branch merge proposal that supersedes this one.

§supersedes_link: Url

Supersedes

The branch merge proposal that this one supersedes.

§target_branch_link: Url

Target branch

The branch that the source branch will be merged into.

§target_git_path: String

Target Git branch path

The path of the Git branch that the source branch will be merged into.

§target_git_repository_link: Url

Target Git repository

The Git repository that the source branch will be merged into.

§votes_collection_link: Url

The votes cast or expected for this proposal

Implementations§

source§

impl BranchMergeProposalFull

source

pub fn self_(&self) -> Option<BranchMergeProposal>

The canonical link to this resource.

source

pub fn set_self_(&mut self, value: Option<BranchMergeProposal>)

source

pub fn all_comments<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CodeReviewCommentPage>, Error>

All messages discussing this merge proposal

source

pub fn merge_reporter(&self) -> Person

Merge reporter

The user that marked the branch as merged.

source

pub fn set_merge_reporter(&mut self, value: Person)

source

pub fn prerequisite_branch(&self) -> Branch

Prerequisite branch

The branch that the source branch branched from. If this branch is the same as the target branch, then leave this field blank.

source

pub fn set_prerequisite_branch(&mut self, value: Branch)

source

pub fn prerequisite_git_repository(&self) -> GitRepository

Prerequisite Git repository

The Git repository containing the branch that the source branch branched from. If this branch is the same as the target branch, then leave this field blank.

source

pub fn set_prerequisite_git_repository(&mut self, value: GitRepository)

source

pub fn preview_diff(&self) -> PreviewDiff

The current diff of the source branch against the target branch.

source

pub fn set_preview_diff(&mut self, value: PreviewDiff)

source

pub fn preview_diffs<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, PreviewDiffPage>, Error>

All preview diffs for this merge proposal.

source

pub fn registrant(&self) -> Person

Person

The person who registered the merge proposal.

source

pub fn set_registrant(&mut self, value: Person)

source

pub fn reviewer(&self) -> Person

Review person or team

The person that accepted (or rejected) the code for merging.

source

pub fn set_reviewer(&mut self, value: Person)

source

pub fn source_branch(&self) -> Branch

Source branch

The branch that has code to land.

source

pub fn set_source_branch(&mut self, value: Branch)

source

pub fn source_git_repository(&self) -> GitRepository

Source Git repository

The Git repository that has code to land.

source

pub fn set_source_git_repository(&mut self, value: GitRepository)

source

pub fn superseded_by(&self) -> BranchMergeProposal

Superseded by

The branch merge proposal that supersedes this one.

source

pub fn set_superseded_by(&mut self, value: BranchMergeProposal)

source

pub fn supersedes(&self) -> BranchMergeProposal

Supersedes

The branch merge proposal that this one supersedes.

source

pub fn set_supersedes(&mut self, value: BranchMergeProposal)

source

pub fn target_branch(&self) -> Branch

Target branch

The branch that the source branch will be merged into.

source

pub fn set_target_branch(&mut self, value: Branch)

source

pub fn target_git_repository(&self) -> GitRepository

Target Git repository

The Git repository that the source branch will be merged into.

source

pub fn set_target_git_repository(&mut self, value: GitRepository)

source

pub fn votes<'a>( &'a self, client: &'a dyn Client, ) -> Result<PagedCollection<'a, CodeReviewVoteReferencePage>, Error>

The votes cast or expected for this proposal

Trait Implementations§

source§

impl Clone for BranchMergeProposalFull

source§

fn clone(&self) -> BranchMergeProposalFull

Returns a copy of the value. Read more
1.6.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BranchMergeProposalFull

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BranchMergeProposalFull

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BranchMergeProposalFull

source§

fn eq(&self, other: &BranchMergeProposalFull) -> bool

Tests for self and other values to be equal, and is used by ==.
1.6.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BranchMergeProposalFull

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for BranchMergeProposalFull

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,