Enum octocrab::commits::PullRequestTarget
source · pub enum PullRequestTarget {
Branch(String),
Sha(String),
}
Expand description
helper to let users know they can pass a branch name or a commit sha
Variants§
Trait Implementations§
source§impl Clone for PullRequestTarget
impl Clone for PullRequestTarget
source§fn clone(&self) -> PullRequestTarget
fn clone(&self) -> PullRequestTarget
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 PullRequestTarget
impl Debug for PullRequestTarget
source§impl Serialize for PullRequestTarget
impl Serialize for PullRequestTarget
Auto Trait Implementations§
impl Freeze for PullRequestTarget
impl RefUnwindSafe for PullRequestTarget
impl Send for PullRequestTarget
impl Sync for PullRequestTarget
impl Unpin for PullRequestTarget
impl UnwindSafe for PullRequestTarget
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