[][src]Struct octocrab::pulls::CreatePullRequestBuilder

pub struct CreatePullRequestBuilder<'octo, 'b> { /* fields omitted */ }

A builder pattern struct for constructing an Octocrab request to create a pull request.

Implementations

impl<'octo, 'b> CreatePullRequestBuilder<'octo, 'b>[src]

pub fn body<A: Into<String>>(self, body: impl Into<Option<A>>) -> Self[src]

The contents of the pull request.

pub fn draft(self, draft: impl Into<Option<bool>>) -> Self[src]

Indicates whether the pull request is a draft.

pub fn maintainer_can_modify(
    self,
    maintainer_can_modify: impl Into<Option<bool>>
) -> Self
[src]

Indicates whether maintainers can modify the pull request.

pub async fn send(self) -> Result<PullRequest>[src]

Sends the request to create the pull request.

Trait Implementations

impl<'octo, 'b> Serialize for CreatePullRequestBuilder<'octo, 'b>[src]

Auto Trait Implementations

impl<'octo, 'b> !RefUnwindSafe for CreatePullRequestBuilder<'octo, 'b>

impl<'octo, 'b> Send for CreatePullRequestBuilder<'octo, 'b>

impl<'octo, 'b> Sync for CreatePullRequestBuilder<'octo, 'b>

impl<'octo, 'b> Unpin for CreatePullRequestBuilder<'octo, 'b> where
    'octo: 'b, 

impl<'octo, 'b> !UnwindSafe for CreatePullRequestBuilder<'octo, 'b>

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