pub struct BranchMergeProposal(/* private fields */);Expand description
Branch merge proposals show intent of landing one branch on another.
Implementations§
Source§impl BranchMergeProposal
impl BranchMergeProposal
pub fn get<'a>( &self, client: &'a dyn Client, ) -> Result<BranchMergeProposalFull, Error>
pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>
pub fn put<'a>( &self, client: &'a dyn Client, representation: &BranchMergeProposalFull, ) -> Result<(), Error>
pub fn patch<'a>( &self, client: &'a dyn Client, representation: &BranchMergeProposalDiff, ) -> Result<(), Error>
Sourcepub fn get_comment<'a>(
&self,
client: &'a dyn Client,
id: &str,
) -> Result<CodeReviewCommentFull, Error>
pub fn get_comment<'a>( &self, client: &'a dyn Client, id: &str, ) -> Result<CodeReviewCommentFull, Error>
Sourcepub fn create_comment<'a>(
&self,
client: &'a dyn Client,
subject: Option<&str>,
content: Option<&str>,
vote: Option<&Vote>,
review_type: Option<&str>,
parent: Option<&CodeReviewComment>,
previewdiff_id: Option<&str>,
inline_comments: Option<&str>,
) -> Result<Option<CodeReviewComment>, Error>
pub fn create_comment<'a>( &self, client: &'a dyn Client, subject: Option<&str>, content: Option<&str>, vote: Option<&Vote>, review_type: Option<&str>, parent: Option<&CodeReviewComment>, previewdiff_id: Option<&str>, inline_comments: Option<&str>, ) -> Result<Option<CodeReviewComment>, Error>
Create an ICodeReviewComment associated with this merge proposal.
§Arguments
subject: The subject line to use for the message.content: The text to use for the message content. If unspecified, the text of the merge proposal is used.votereview_typeparent: The previous CodeReviewComment in the thread. If unspecified, the root message is used.previewdiff_idinline_comments
Sourcepub fn set_status<'a>(
&self,
client: &'a dyn Client,
status: &MergeProposalStatus,
revid: Option<&str>,
) -> Result<(), Error>
pub fn set_status<'a>( &self, client: &'a dyn Client, status: &MergeProposalStatus, revid: Option<&str>, ) -> Result<(), Error>
Set the state of the merge proposal to the specified status.
§Arguments
status: The new status of the merge proposal.revid: An optional parameter for specifying the revision of the branch for the status change.
Sourcepub fn nominate_reviewer<'a>(
&self,
client: &'a dyn Client,
reviewer: &Person,
review_type: Option<&str>,
) -> Result<CodeReviewVoteReferenceFull, Error>
pub fn nominate_reviewer<'a>( &self, client: &'a dyn Client, reviewer: &Person, review_type: Option<&str>, ) -> Result<CodeReviewVoteReferenceFull, Error>
Set the specified person as a reviewer.
If they are not already a reviewer, a vote is created. Otherwise, the details are updated.
§Arguments
reviewer: A reviewer.review_type
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BranchMergeProposal
impl RefUnwindSafe for BranchMergeProposal
impl Send for BranchMergeProposal
impl Sync for BranchMergeProposal
impl Unpin for BranchMergeProposal
impl UnwindSafe for BranchMergeProposal
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