pub struct PrBranch {
pub git_ref: String,
pub label: Option<String>,
pub sha: Option<String>,
pub repo: Option<PrRepoRef>,
}Expand description
Gitee returns PR head/base as objects { ref, label, sha, repo, user },
not plain strings (the swagger model is wrong on this point).
Fields§
§git_ref: String§label: Option<String>§sha: Option<String>§repo: Option<PrRepoRef>Trait Implementations§
Source§impl<'de> Deserialize<'de> for PrBranch
impl<'de> Deserialize<'de> for PrBranch
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
Auto Trait Implementations§
impl Freeze for PrBranch
impl RefUnwindSafe for PrBranch
impl Send for PrBranch
impl Sync for PrBranch
impl Unpin for PrBranch
impl UnsafeUnpin for PrBranch
impl UnwindSafe for PrBranch
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