pub struct IndexEntry {
pub digest: String,
pub bytes: u64,
pub fetched_at: u64,
pub source: Option<String>,
pub etag: Option<String>,
pub provider_identity: Option<String>,
pub layer: Layer,
}Expand description
The index sidecar for one key (spec §12). Never holds a secret: the provider identity is recorded, not the credential.
Fields§
§digest: StringLowercase hex SHA-256; also the blob’s address.
bytes: u64§fetched_at: u64Unix seconds.
source: Option<String>Sanitised origin and path of what was fetched, the mirror location,
or local:import. Never a query string.
etag: Option<String>§provider_identity: Option<String>§layer: LayerTrait Implementations§
Source§impl Clone for IndexEntry
impl Clone for IndexEntry
Source§impl Debug for IndexEntry
impl Debug for IndexEntry
Source§impl<'de> Deserialize<'de> for IndexEntry
impl<'de> Deserialize<'de> for IndexEntry
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 IndexEntry
Source§impl PartialEq for IndexEntry
impl PartialEq for IndexEntry
Source§impl Serialize for IndexEntry
impl Serialize for IndexEntry
impl StructuralPartialEq for IndexEntry
Auto Trait Implementations§
impl Freeze for IndexEntry
impl RefUnwindSafe for IndexEntry
impl Send for IndexEntry
impl Sync for IndexEntry
impl Unpin for IndexEntry
impl UnsafeUnpin for IndexEntry
impl UnwindSafe for IndexEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.