pub struct CodeRepositoryScopeMetadata {
pub scope_id: String,
pub repository_id: String,
pub alias: String,
pub requested_ref: String,
pub resolved_commit_sha: String,
pub tree_hash: String,
pub path_filters: Vec<String>,
pub language_filters: Vec<String>,
pub index_versions: Vec<String>,
pub stale: bool,
}Expand description
Code repository scope and index metadata attached to code responses.
Fields§
§scope_id: String§repository_id: String§alias: String§requested_ref: String§resolved_commit_sha: String§tree_hash: String§path_filters: Vec<String>§language_filters: Vec<String>§index_versions: Vec<String>§stale: boolImplementations§
Source§impl CodeRepositoryScopeMetadata
impl CodeRepositoryScopeMetadata
Sourcepub fn from_status(
status: &CodeRepositoryStatus,
selector: &CodeRepositorySelector,
requested_ref: impl Into<String>,
) -> Self
pub fn from_status( status: &CodeRepositoryStatus, selector: &CodeRepositorySelector, requested_ref: impl Into<String>, ) -> Self
Builds stable scope metadata from the selected repository snapshot.
Sourcepub fn from_index_task(
task: &CodeIndexTaskRecord,
requested_ref: impl Into<String>,
) -> Self
pub fn from_index_task( task: &CodeIndexTaskRecord, requested_ref: impl Into<String>, ) -> Self
Builds scope metadata for a queued or running index task.
Trait Implementations§
Source§impl Clone for CodeRepositoryScopeMetadata
impl Clone for CodeRepositoryScopeMetadata
Source§fn clone(&self) -> CodeRepositoryScopeMetadata
fn clone(&self) -> CodeRepositoryScopeMetadata
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 CodeRepositoryScopeMetadata
impl Debug for CodeRepositoryScopeMetadata
Source§impl<'de> Deserialize<'de> for CodeRepositoryScopeMetadata
impl<'de> Deserialize<'de> for CodeRepositoryScopeMetadata
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
Source§impl PartialEq for CodeRepositoryScopeMetadata
impl PartialEq for CodeRepositoryScopeMetadata
Source§fn eq(&self, other: &CodeRepositoryScopeMetadata) -> bool
fn eq(&self, other: &CodeRepositoryScopeMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CodeRepositoryScopeMetadata
impl StructuralPartialEq for CodeRepositoryScopeMetadata
Auto Trait Implementations§
impl Freeze for CodeRepositoryScopeMetadata
impl RefUnwindSafe for CodeRepositoryScopeMetadata
impl Send for CodeRepositoryScopeMetadata
impl Sync for CodeRepositoryScopeMetadata
impl Unpin for CodeRepositoryScopeMetadata
impl UnsafeUnpin for CodeRepositoryScopeMetadata
impl UnwindSafe for CodeRepositoryScopeMetadata
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§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.