pub struct UpdatePullRequestBuilder<'octo, 'b> { /* private fields */ }
Expand description
A builder pattern struct for constructing an Octocrab request to update a pull request.
Implementations§
Source§impl<'octo, 'b> UpdatePullRequestBuilder<'octo, 'b>
impl<'octo, 'b> UpdatePullRequestBuilder<'octo, 'b>
Sourcepub fn body<A: Into<String>>(self, body: impl Into<Option<A>>) -> Self
pub fn body<A: Into<String>>(self, body: impl Into<Option<A>>) -> Self
The contents of the pull request.
Sourcepub fn title<A: Into<String>>(self, title: impl Into<Option<A>>) -> Self
pub fn title<A: Into<String>>(self, title: impl Into<Option<A>>) -> Self
The contents of the pull request.
Sourcepub fn base<A: Into<String>>(self, base: impl Into<Option<A>>) -> Self
pub fn base<A: Into<String>>(self, base: impl Into<Option<A>>) -> Self
The contents of the pull request.
Sourcepub fn state<A: Into<State>>(self, state: impl Into<Option<A>>) -> Self
pub fn state<A: Into<State>>(self, state: impl Into<Option<A>>) -> Self
The contents of the pull request.
Sourcepub fn maintainer_can_modify(
self,
maintainer_can_modify: impl Into<Option<bool>>,
) -> Self
pub fn maintainer_can_modify( self, maintainer_can_modify: impl Into<Option<bool>>, ) -> Self
Indicates whether maintainers
can modify the pull request.
Sourcepub async fn send(self) -> Result<PullRequest>
pub async fn send(self) -> Result<PullRequest>
Sends the request to update the pull request.
Trait Implementations§
Auto Trait Implementations§
impl<'octo, 'b> Freeze for UpdatePullRequestBuilder<'octo, 'b>
impl<'octo, 'b> !RefUnwindSafe for UpdatePullRequestBuilder<'octo, 'b>
impl<'octo, 'b> Send for UpdatePullRequestBuilder<'octo, 'b>
impl<'octo, 'b> Sync for UpdatePullRequestBuilder<'octo, 'b>
impl<'octo, 'b> Unpin for UpdatePullRequestBuilder<'octo, 'b>
impl<'octo, 'b> !UnwindSafe for UpdatePullRequestBuilder<'octo, 'b>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more