pub struct PackageEntry {
pub name: String,
pub version: String,
pub description: String,
pub installed_at: DateTime<Utc>,
pub layers: Vec<String>,
pub sha256: String,
pub byte_size: u64,
pub tags: Vec<String>,
pub auto_load: bool,
pub auto_load_projects: Vec<String>,
pub origin: Option<PackageOrigin>,
}Fields§
§name: String§version: String§description: String§installed_at: DateTime<Utc>§layers: Vec<String>§sha256: String§byte_size: u64§auto_load: bool§auto_load_projects: Vec<String>The projects (project_hash::hash_project_root) this package is
auto-loaded into (V03). Auto-load is bound to the project it was
enabled in; an entry written before the binding existed has
auto_load set and no project here, and is auto-loaded nowhere until
it is enabled again in a project (fail-safe).
origin: Option<PackageOrigin>How the package came to this machine (V02). An entry written before this was recorded has none and counts as received.
Implementations§
Source§impl PackageEntry
impl PackageEntry
Sourcepub fn auto_loads_into(&self, project_root: &str) -> bool
pub fn auto_loads_into(&self, project_root: &str) -> bool
Whether this package is auto-loaded into project_root.
Sourcepub fn auto_load_unbound(&self) -> bool
pub fn auto_load_unbound(&self) -> bool
Auto-load is set, but bound to no project (an index entry from before the binding): it loads nowhere.
Trait Implementations§
Source§impl Clone for PackageEntry
impl Clone for PackageEntry
Source§impl Debug for PackageEntry
impl Debug for PackageEntry
Source§impl<'de> Deserialize<'de> for PackageEntry
impl<'de> Deserialize<'de> for PackageEntry
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
Auto Trait Implementations§
impl Forget for PackageEntry
impl Freeze for PackageEntry
impl Move for PackageEntry
impl RefUnwindSafe for PackageEntry
impl Send for PackageEntry
impl Sync for PackageEntry
impl Unpin for PackageEntry
impl UnsafeUnpin for PackageEntry
impl UnwindSafe for PackageEntry
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>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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