pub struct FetchMeta {
pub commit: Option<String>,
pub ref_: Option<String>,
pub integrity: Option<String>,
pub tarball: Option<String>,
pub install_path: Option<PathBuf>,
pub urls: Option<Vec<String>>,
}Expand description
Source-specific metadata propagated to the resolved cache / lockfile.
Fields§
§commit: Option<String>GitHub commit sha (40 hex chars).
ref_: Option<String>GitHub ref used (tag or branch name).
integrity: Option<String>npm Subresource Integrity hash from dist.integrity.
tarball: Option<String>npm tarball URL (omitted for local node_modules reads).
install_path: Option<PathBuf>Absolute path to the local node_modules/<pkg> dir when read locally.
urls: Option<Vec<String>>web / llms-txt source URL(s).
Trait Implementations§
impl Eq for FetchMeta
impl StructuralPartialEq for FetchMeta
Auto Trait Implementations§
impl Forget for FetchMeta
impl Freeze for FetchMeta
impl Move for FetchMeta
impl RefUnwindSafe for FetchMeta
impl Send for FetchMeta
impl Sync for FetchMeta
impl Unpin for FetchMeta
impl UnsafeUnpin for FetchMeta
impl UnwindSafe for FetchMeta
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