pub enum RemoteKind {
GitDependency,
Registry,
}
Expand description
The kind remote repository to fetch.
Variants§
GitDependency
A repository belongs to a git dependency.
Registry
A repository belongs to a Cargo registry.
Implementations§
Source§impl RemoteKind
impl RemoteKind
Sourcepub(crate) fn to_shallow_setting(
&self,
repo_is_shallow: bool,
gctx: &GlobalContext,
) -> Shallow
pub(crate) fn to_shallow_setting( &self, repo_is_shallow: bool, gctx: &GlobalContext, ) -> Shallow
Obtain the kind of history we would want for a fetch from our remote knowing if the target repo is already shallow
via repo_is_shallow
along with gitoxide-specific feature configuration via config
.
rev_and_ref
is additional information that affects whether or not we may be shallow.
Trait Implementations§
Source§impl Clone for RemoteKind
impl Clone for RemoteKind
Source§fn clone(&self) -> RemoteKind
fn clone(&self) -> RemoteKind
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 RemoteKind
impl Debug for RemoteKind
impl Copy for RemoteKind
Auto Trait Implementations§
impl Freeze for RemoteKind
impl RefUnwindSafe for RemoteKind
impl Send for RemoteKind
impl Sync for RemoteKind
impl Unpin for RemoteKind
impl UnwindSafe for RemoteKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
GitDependency
: 0 bytesRegistry
: 0 bytes