BranchMergeProposal

Struct BranchMergeProposal 

Source
pub struct BranchMergeProposal(/* private fields */);
Expand description

Branch merge proposals show intent of landing one branch on another.

Implementations§

Source§

impl BranchMergeProposal

Source

pub fn get<'a>( &self, client: &'a dyn Client, ) -> Result<BranchMergeProposalFull, Error>

Source

pub fn get_wadl<'a>(&self, client: &'a dyn Client) -> Result<Resource, Error>

Source

pub fn put<'a>( &self, client: &'a dyn Client, representation: &BranchMergeProposalFull, ) -> Result<(), Error>

Source

pub fn patch<'a>( &self, client: &'a dyn Client, representation: &BranchMergeProposalDiff, ) -> Result<(), Error>

Source

pub fn get_comment<'a>( &self, client: &'a dyn Client, id: &str, ) -> Result<CodeReviewCommentFull, Error>

Return the CodeReviewComment with the specified ID.

§Arguments
  • id: A CodeReviewComment ID.
Source

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.
  • vote
  • review_type
  • parent: The previous CodeReviewComment in the thread. If unspecified, the root message is used.
  • previewdiff_id
  • inline_comments
Source

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.
Source

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§

Source§

impl Resource for BranchMergeProposal

Source§

fn url(&self) -> &Url

The URL of the resource

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> 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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. 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