[][src]Struct gitlab::api::projects::merge_requests::ApproveMergeRequestBuilder

pub struct ApproveMergeRequestBuilder<'a> { /* fields omitted */ }

Builder for ApproveMergeRequest.

Implementations

impl<'a> ApproveMergeRequestBuilder<'a>[src]

pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self[src]

The project with the merge request.

pub fn merge_request(&mut self, value: u64) -> &mut Self[src]

The ID of the merge request.

pub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self[src]

Git commit SHA to approve. If set, this must match the head of the branch being approved or the approval will fail.

pub fn approval_password<VALUE: Into<Cow<'a, str>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Approver's password (required if Require user password to approve is enabled in project settings). Note: no special encryption is applied to this field. TLS/HTTPS for on-the-wire encryption is assumed.

pub fn build(&self) -> Result<ApproveMergeRequest<'a>, String>[src]

Builds a new ApproveMergeRequest.

Errors

If a required field has not been initialized.

Trait Implementations

impl<'a> Clone for ApproveMergeRequestBuilder<'a>[src]

impl<'a> Default for ApproveMergeRequestBuilder<'a>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.