pub struct LockEntry {
pub source: Option<EntrySource>,
pub digest: Digest,
pub deps: BTreeSet<Identifier>,
}
Expand description
WIT dependency Lock entry
Fields§
§source: Option<EntrySource>
Resource source, None if the dependency is transitive
digest: Digest
Resource digest
deps: BTreeSet<Identifier>
Transitive dependency identifiers
Implementations§
source§impl Entry
impl Entry
sourcepub fn new(
source: Option<EntrySource>,
digest: Digest,
deps: BTreeSet<Identifier>,
) -> Self
pub fn new( source: Option<EntrySource>, digest: Digest, deps: BTreeSet<Identifier>, ) -> Self
Create a new entry given a dependency source and path containing it
sourcepub async fn from_url(
url: Url,
path: impl AsRef<Path>,
deps: BTreeSet<Identifier>,
) -> Result<Self>
pub async fn from_url( url: Url, path: impl AsRef<Path>, deps: BTreeSet<Identifier>, ) -> Result<Self>
Create a new entry given a dependency url and path containing the unpacked contents of it
§Errors
Returns an error if Self::digest
of path
fails
sourcepub async fn from_path(
src: PathBuf,
dst: impl AsRef<Path>,
deps: BTreeSet<Identifier>,
) -> Result<Self>
pub async fn from_path( src: PathBuf, dst: impl AsRef<Path>, deps: BTreeSet<Identifier>, ) -> Result<Self>
sourcepub async fn from_transitive_path(dst: impl AsRef<Path>) -> Result<Self>
pub async fn from_transitive_path(dst: impl AsRef<Path>) -> Result<Self>
Create a new entry given a transitive dependency path
§Errors
Returns an error if Self::digest
of path
fails
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.