pub struct CodeWorkspacePackageMapping {
pub package_name: String,
pub ecosystem: String,
pub repository_id: String,
pub source_scope: String,
pub confidence_basis_points: u32,
}Expand description
Maps a workspace member’s package name to an indexed repository scope.
This is the bridge record that the cross-repo resolver uses to translate an unresolved import module into a candidate source scope and repository after workspace detection has grouped the packages.
Fields§
§package_name: StringPackage name as discovered from the workspace manifest.
ecosystem: StringTarget ecosystem derived from the workspace format (e.g. "go", "rust", "npm").
repository_id: StringRepository identifier the indexed scope belongs to.
source_scope: StringSource scope the resolved target lives in (git_snapshot:<hash>).
confidence_basis_points: u32Confidence in basis points (0–10 000) that this mapping is correct.
Trait Implementations§
Source§impl Clone for CodeWorkspacePackageMapping
impl Clone for CodeWorkspacePackageMapping
Source§fn clone(&self) -> CodeWorkspacePackageMapping
fn clone(&self) -> CodeWorkspacePackageMapping
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 CodeWorkspacePackageMapping
impl Debug for CodeWorkspacePackageMapping
Source§impl<'de> Deserialize<'de> for CodeWorkspacePackageMapping
impl<'de> Deserialize<'de> for CodeWorkspacePackageMapping
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 CodeWorkspacePackageMapping
impl StructuralPartialEq for CodeWorkspacePackageMapping
Auto Trait Implementations§
impl Freeze for CodeWorkspacePackageMapping
impl RefUnwindSafe for CodeWorkspacePackageMapping
impl Send for CodeWorkspacePackageMapping
impl Sync for CodeWorkspacePackageMapping
impl Unpin for CodeWorkspacePackageMapping
impl UnsafeUnpin for CodeWorkspacePackageMapping
impl UnwindSafe for CodeWorkspacePackageMapping
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.