pub struct CodeRepositoryPendingIndexWork {Show 15 fields
pub active_for_repository: bool,
pub active_matches_request: bool,
pub active_task_id: Option<String>,
pub active_task_state: Option<String>,
pub active_task_source_scope: Option<String>,
pub active_task_ref_selector: Option<String>,
pub active_task_resolved_commit_sha: Option<String>,
pub active_task_lease_expires_at_ms: Option<u64>,
pub queue_depth: usize,
pub queued_task_count: usize,
pub running_task_count: usize,
pub retrying_task_count: usize,
pub dead_letter_task_count: usize,
pub running_lease_count: usize,
pub last_error: Option<String>,
}Expand description
Pending code-index work that can make a graph answer stale.
Fields§
§active_for_repository: bool§active_matches_request: bool§active_task_id: Option<String>§active_task_state: Option<String>§active_task_source_scope: Option<String>§active_task_ref_selector: Option<String>§active_task_resolved_commit_sha: Option<String>§active_task_lease_expires_at_ms: Option<u64>§queue_depth: usize§queued_task_count: usize§running_task_count: usize§retrying_task_count: usize§dead_letter_task_count: usize§running_lease_count: usize§last_error: Option<String>Implementations§
Source§impl CodeRepositoryPendingIndexWork
impl CodeRepositoryPendingIndexWork
pub fn from_task_and_queue( task: Option<&CodeIndexTaskRecord>, active_matches_request: bool, queue: CodeIndexTaskQueueStatus, ) -> Self
Trait Implementations§
Source§impl Clone for CodeRepositoryPendingIndexWork
impl Clone for CodeRepositoryPendingIndexWork
Source§fn clone(&self) -> CodeRepositoryPendingIndexWork
fn clone(&self) -> CodeRepositoryPendingIndexWork
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 Default for CodeRepositoryPendingIndexWork
impl Default for CodeRepositoryPendingIndexWork
Source§fn default() -> CodeRepositoryPendingIndexWork
fn default() -> CodeRepositoryPendingIndexWork
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CodeRepositoryPendingIndexWork
impl<'de> Deserialize<'de> for CodeRepositoryPendingIndexWork
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 CodeRepositoryPendingIndexWork
impl StructuralPartialEq for CodeRepositoryPendingIndexWork
Auto Trait Implementations§
impl Freeze for CodeRepositoryPendingIndexWork
impl RefUnwindSafe for CodeRepositoryPendingIndexWork
impl Send for CodeRepositoryPendingIndexWork
impl Sync for CodeRepositoryPendingIndexWork
impl Unpin for CodeRepositoryPendingIndexWork
impl UnsafeUnpin for CodeRepositoryPendingIndexWork
impl UnwindSafe for CodeRepositoryPendingIndexWork
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.