Struct octocrab::pulls::UpdatePullRequestBuilder
source · 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