pub struct Checksums(/* private fields */);Expand description
A locked plugin’s artifact checksums by platform (macos-aarch64, linux-x86_64, …), so
one committed dre.lock installs the same builds on every machine. Written as a map; a lock
from before this holds one checksum for a platform it didn’t name (see Checksums::legacy).
Implementations§
Source§impl Checksums
impl Checksums
pub fn new() -> Checksums
Sourcepub fn legacy_only(sha: &str) -> Checksums
pub fn legacy_only(sha: &str) -> Checksums
One checksum of unknown platform, as in a lock from before per-platform checksums.
pub fn get(&self, platform: &str) -> Option<&str>
pub fn is_empty(&self) -> bool
Sourcepub fn contains(&self, sha: &str) -> bool
pub fn contains(&self, sha: &str) -> bool
Whether sha is one of the known platforms’ checksums.
pub fn legacy(&self) -> Option<&str>
pub fn insert(&mut self, platform: &str, sha: &str)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Checksums
impl<'de> Deserialize<'de> for Checksums
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Checksums
Auto Trait Implementations§
impl Freeze for Checksums
impl RefUnwindSafe for Checksums
impl Send for Checksums
impl Sync for Checksums
impl Unpin for Checksums
impl UnsafeUnpin for Checksums
impl UnwindSafe for Checksums
Blanket Implementations§
impl<T> Allocation for T
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