pub struct PullRequestPostPayload {
pub title: String,
pub description: Option<String>,
pub from_ref: RefInfo,
pub to_ref: RefInfo,
pub reviewers: Option<Vec<Reviewer>>,
}
Expand description
The payload for creating a pull request.
This struct represents the data that will be sent to the Bitbucket Server API when creating a new pull request.
Fields§
§title: String
The title of the pull request
description: Option<String>
The description of the pull request
from_ref: RefInfo
The branch information for the pull request
to_ref: RefInfo
The target branch information for the pull request
reviewers: Option<Vec<Reviewer>>
The list of reviewers for the pull request
Trait Implementations§
Source§impl Clone for PullRequestPostPayload
impl Clone for PullRequestPostPayload
Source§fn clone(&self) -> PullRequestPostPayload
fn clone(&self) -> PullRequestPostPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PullRequestPostPayload
impl Debug for PullRequestPostPayload
Source§impl Default for PullRequestPostPayload
impl Default for PullRequestPostPayload
Source§fn default() -> PullRequestPostPayload
fn default() -> PullRequestPostPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PullRequestPostPayload
impl<'de> Deserialize<'de> for PullRequestPostPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PullRequestPostPayload
impl PartialEq for PullRequestPostPayload
Source§impl Serialize for PullRequestPostPayload
impl Serialize for PullRequestPostPayload
impl StructuralPartialEq for PullRequestPostPayload
Auto Trait Implementations§
impl Freeze for PullRequestPostPayload
impl RefUnwindSafe for PullRequestPostPayload
impl Send for PullRequestPostPayload
impl Sync for PullRequestPostPayload
impl Unpin for PullRequestPostPayload
impl UnwindSafe for PullRequestPostPayload
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