pub struct CodeIndexSession {Show 16 fields
pub repository_id: String,
pub source_scope: String,
pub base_resolved_commit_sha: Option<String>,
pub resolved_commit_sha: String,
pub tree_hash: String,
pub path_filters: Vec<String>,
pub language_filters: Vec<String>,
pub full_replace: bool,
pub total_path_count: usize,
pub changed_path_count: usize,
pub skipped_unchanged_count: usize,
pub deleted_paths: Vec<String>,
pub changed_paths: Vec<String>,
pub tombstones: Vec<CodePathTombstone>,
pub workspaces: Vec<CodeMonorepoWorkspace>,
pub resource_budget: CodeIndexResourceBudget,
}Expand description
Stable metadata for one resumable repository indexing session.
Fields§
§repository_id: String§source_scope: String§base_resolved_commit_sha: Option<String>§resolved_commit_sha: String§tree_hash: String§path_filters: Vec<String>§language_filters: Vec<String>§full_replace: bool§total_path_count: usize§changed_path_count: usize§skipped_unchanged_count: usize§deleted_paths: Vec<String>§changed_paths: Vec<String>Paths that will be re-inserted during an incremental session.
Used by begin_session_once to exclude them from the historical
scope clone so stale rows are never copied into the new scope.
Empty for full-replace sessions.
tombstones: Vec<CodePathTombstone>§workspaces: Vec<CodeMonorepoWorkspace>§resource_budget: CodeIndexResourceBudgetTrait Implementations§
Source§impl Clone for CodeIndexSession
impl Clone for CodeIndexSession
Source§fn clone(&self) -> CodeIndexSession
fn clone(&self) -> CodeIndexSession
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 CodeIndexSession
impl Debug for CodeIndexSession
Source§impl<'de> Deserialize<'de> for CodeIndexSession
impl<'de> Deserialize<'de> for CodeIndexSession
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 CodeIndexSession
Source§impl PartialEq for CodeIndexSession
impl PartialEq for CodeIndexSession
Source§impl Serialize for CodeIndexSession
impl Serialize for CodeIndexSession
impl StructuralPartialEq for CodeIndexSession
Auto Trait Implementations§
impl Freeze for CodeIndexSession
impl RefUnwindSafe for CodeIndexSession
impl Send for CodeIndexSession
impl Sync for CodeIndexSession
impl Unpin for CodeIndexSession
impl UnsafeUnpin for CodeIndexSession
impl UnwindSafe for CodeIndexSession
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.