[−][src]Struct gitlab::api::projects::merge_requests::ApproveMergeRequestBuilder
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]
&mut self,
value: VALUE
) -> &mut Self
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]
Trait Implementations
impl<'a> Clone for ApproveMergeRequestBuilder<'a>
[src]
fn clone(&self) -> ApproveMergeRequestBuilder<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Default for ApproveMergeRequestBuilder<'a>
[src]
fn default() -> ApproveMergeRequestBuilder<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for ApproveMergeRequestBuilder<'a>
impl<'a> Send for ApproveMergeRequestBuilder<'a>
impl<'a> Sync for ApproveMergeRequestBuilder<'a>
impl<'a> Unpin for ApproveMergeRequestBuilder<'a>
impl<'a> UnwindSafe for ApproveMergeRequestBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,