pub enum CodeIndexMode {
Full,
Incremental {
base_ref: String,
head_ref: String,
},
WorktreeOverlay,
}Expand description
Code index mode tied to Git snapshots or diffs.
Variants§
Implementations§
Source§impl CodeIndexMode
impl CodeIndexMode
Sourcepub fn incremental(
base_ref: impl Into<String>,
head_ref: impl Into<String>,
) -> Result<Self, DomainError>
pub fn incremental( base_ref: impl Into<String>, head_ref: impl Into<String>, ) -> Result<Self, DomainError>
Validates incremental refs and preserves the mode contract.
Trait Implementations§
Source§impl Clone for CodeIndexMode
impl Clone for CodeIndexMode
Source§fn clone(&self) -> CodeIndexMode
fn clone(&self) -> CodeIndexMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodeIndexMode
impl Debug for CodeIndexMode
Source§impl<'de> Deserialize<'de> for CodeIndexMode
impl<'de> Deserialize<'de> for CodeIndexMode
Source§fn 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
impl Eq for CodeIndexMode
Source§impl PartialEq for CodeIndexMode
impl PartialEq for CodeIndexMode
Source§fn eq(&self, other: &CodeIndexMode) -> bool
fn eq(&self, other: &CodeIndexMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CodeIndexMode
impl Serialize for CodeIndexMode
impl StructuralPartialEq for CodeIndexMode
Auto Trait Implementations§
impl Freeze for CodeIndexMode
impl RefUnwindSafe for CodeIndexMode
impl Send for CodeIndexMode
impl Sync for CodeIndexMode
impl Unpin for CodeIndexMode
impl UnsafeUnpin for CodeIndexMode
impl UnwindSafe for CodeIndexMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.