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,
config: &Config
) -> Shallow
pub(crate) fn to_shallow_setting( &self, repo_is_shallow: bool, config: &Config ) -> 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 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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§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>,
source§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