pub struct ResolvedSource {
pub path: PathBuf,
pub source_type: SourceType,
pub repo_name: Option<String>,
pub repo_type: Option<String>,
pub registry_handle: Option<String>,
pub sharable_manifest: Option<SharableInstallManifest>,
pub git_sha: Option<String>,
}Expand description
Represents a source that has been resolved to a local path.
Fields§
§path: PathBufThe path to the resolved .pkg.lua or manifest file.
source_type: SourceTypeThe type of the source.
repo_name: Option<String>The name of the repository, if applicable.
repo_type: Option<String>The type of the repository (e.g. official, unofficial).
registry_handle: Option<String>The handle of the registry.
sharable_manifest: Option<SharableInstallManifest>An optional sharable manifest associated with the source.
git_sha: Option<String>The Git SHA if the source is from a Git repository.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResolvedSource
impl RefUnwindSafe for ResolvedSource
impl Send for ResolvedSource
impl Sync for ResolvedSource
impl Unpin for ResolvedSource
impl UnsafeUnpin for ResolvedSource
impl UnwindSafe for ResolvedSource
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more