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
sourceimpl Clone for PullRequestRef
impl Clone for PullRequestRef
sourcefn clone(&self) -> PullRequestRef
fn clone(&self) -> PullRequestRef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PullRequestRef
impl Debug for PullRequestRef
sourceimpl Default for PullRequestRef
impl Default for PullRequestRef
sourcefn default() -> PullRequestRef
fn default() -> PullRequestRef
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for PullRequestRef
impl<'de> Deserialize<'de> for PullRequestRef
sourcefn 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
sourceimpl PartialEq<PullRequestRef> for PullRequestRef
impl PartialEq<PullRequestRef> for PullRequestRef
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PullRequestRef) -> bool
fn ne(&self, other: &PullRequestRef) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more