pub struct PutPullsUpdateBranch {
pub expected_head_sha: Option<String>,
}Fields§
§expected_head_sha: Option<String>The expected SHA of the pull request’s HEAD ref. This is the most recent commit on the pull request’s branch. If the expected SHA does not match the pull request’s HEAD, you will receive a 422 Unprocessable Entity status. You can use the "List commits" endpoint to find the most recent commit SHA. Default: SHA of the pull request’s current HEAD ref.
Trait Implementations§
Source§impl Clone for PutPullsUpdateBranch
impl Clone for PutPullsUpdateBranch
Source§fn clone(&self) -> PutPullsUpdateBranch
fn clone(&self) -> PutPullsUpdateBranch
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 PutPullsUpdateBranch
impl Debug for PutPullsUpdateBranch
Source§impl Default for PutPullsUpdateBranch
impl Default for PutPullsUpdateBranch
Source§fn default() -> PutPullsUpdateBranch
fn default() -> PutPullsUpdateBranch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PutPullsUpdateBranch
impl<'de> Deserialize<'de> for PutPullsUpdateBranch
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 PutPullsUpdateBranch
impl PartialEq for PutPullsUpdateBranch
Source§impl Serialize for PutPullsUpdateBranch
impl Serialize for PutPullsUpdateBranch
impl StructuralPartialEq for PutPullsUpdateBranch
Auto Trait Implementations§
impl Freeze for PutPullsUpdateBranch
impl RefUnwindSafe for PutPullsUpdateBranch
impl Send for PutPullsUpdateBranch
impl Sync for PutPullsUpdateBranch
impl Unpin for PutPullsUpdateBranch
impl UnwindSafe for PutPullsUpdateBranch
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