pub trait ImportResolver {
// Required method
fn resolve(
&self,
import: &ValidatedImport,
) -> Result<ResolvedPackage, AgmError>;
}Expand description
Trait for resolving AGM package imports to their on-disk (or registry) representations.
Required Methods§
Sourcefn resolve(&self, import: &ValidatedImport) -> Result<ResolvedPackage, AgmError>
fn resolve(&self, import: &ValidatedImport) -> Result<ResolvedPackage, AgmError>
Resolve a validated import to a package.
Returns Err with I001 if the package cannot be found, or I002 if the
package is found but no version satisfies the constraint.