pub enum CheckoutSource {
HeadRef {
remote_ref: String,
local: String,
},
Branch {
fork_url: Option<String>,
branch: String,
local: String,
},
}Expand description
How to get the code of a pull request onto a local branch.
Variants§
HeadRef
The host keeps the head in a special ref of the target repository
(GitHub, GitLab, Bitbucket Data Center): fetch it, track local.
Branch
The head is an ordinary branch, possibly of a fork (Azure DevOps, Bitbucket Cloud).
Trait Implementations§
Source§impl Clone for CheckoutSource
impl Clone for CheckoutSource
Source§impl Debug for CheckoutSource
impl Debug for CheckoutSource
impl Eq for CheckoutSource
Source§impl PartialEq for CheckoutSource
impl PartialEq for CheckoutSource
impl StructuralPartialEq for CheckoutSource
Auto Trait Implementations§
impl Forget for CheckoutSource
impl Freeze for CheckoutSource
impl Move for CheckoutSource
impl RefUnwindSafe for CheckoutSource
impl Send for CheckoutSourcewhere
RawVecInner: Send,
impl Sync for CheckoutSourcewhere
RawVecInner: Sync,
impl Unpin for CheckoutSource
impl UnsafeUnpin for CheckoutSource
impl UnwindSafe for CheckoutSourcewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.