Struct f3_rs::pullrequest::PullRequestRef
source · pub struct PullRequestRef {
pub clone_url: String,
pub reference: Option<String>,
pub sha: String,
pub repo_name: String,
pub owner_name: String,
}
Expand description
PullRequest reference to a commit The location of a commit, including the URL of the repository where it can be found
Fields§
§clone_url: String
URL of the repository where the commit is located.
reference: Option<String>
Target branch in the repository.
NOTE: Actual property is called “ref” but it is a keyword in Rust so we are using “reference”. However, “reference” will automatically be renamed to “ref” while serializing and vice versa
sha: String
SHA of the commit
repo_name: String
Name of the project that contains the git repository.
owner_name: String
Name of the user or organization that contains the project.
Trait Implementations§
source§impl Clone for PullRequestRef
impl Clone for PullRequestRef
source§fn clone(&self) -> PullRequestRef
fn clone(&self) -> PullRequestRef
Returns a copy 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 PullRequestRef
impl Debug for PullRequestRef
source§impl Default for PullRequestRef
impl Default for PullRequestRef
source§fn default() -> PullRequestRef
fn default() -> PullRequestRef
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PullRequestRef
impl<'de> Deserialize<'de> for PullRequestRef
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<PullRequestRef> for PullRequestRef
impl PartialEq<PullRequestRef> for PullRequestRef
source§fn eq(&self, other: &PullRequestRef) -> bool
fn eq(&self, other: &PullRequestRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PullRequestRef
impl Serialize for PullRequestRef
impl Eq for PullRequestRef
impl StructuralEq for PullRequestRef
impl StructuralPartialEq for PullRequestRef
Auto Trait Implementations§
impl RefUnwindSafe for PullRequestRef
impl Send for PullRequestRef
impl Sync for PullRequestRef
impl Unpin for PullRequestRef
impl UnwindSafe for PullRequestRef
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