pub struct CacheManifestEntry {
pub dataset_id: String,
pub source_url: String,
pub resolved_url: Option<String>,
pub sha256: String,
pub file_size: u64,
pub downloaded_at: String,
pub sentence_count: usize,
pub entity_count: usize,
pub anno_version: String,
}Expand description
Entry in the cache manifest tracking a downloaded dataset file.
Fields§
§dataset_id: StringDataset identifier.
source_url: StringSource URL from which the data was downloaded.
This is the logical registry URL (what the dataset entry says).
resolved_url: Option<String>The URL that was actually fetched (after any rewrites / mirrors).
This is helpful for reproducibility (and debugging) when the registry URL is a
homepage (e.g., HuggingFace dataset page) but we fetched via datasets-server
or resolve/main/....
sha256: StringSHA-256 checksum of the downloaded file.
file_size: u64File size in bytes.
downloaded_at: StringISO 8601 timestamp of when the file was downloaded.
sentence_count: usizeNumber of sentences parsed from the dataset.
entity_count: usizeNumber of entities parsed from the dataset.
anno_version: StringAnno version that downloaded this file.
Trait Implementations§
Source§impl Clone for CacheManifestEntry
impl Clone for CacheManifestEntry
Source§fn clone(&self) -> CacheManifestEntry
fn clone(&self) -> CacheManifestEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheManifestEntry
impl Debug for CacheManifestEntry
Source§impl<'de> Deserialize<'de> for CacheManifestEntry
impl<'de> Deserialize<'de> for CacheManifestEntry
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 Freeze for CacheManifestEntry
impl RefUnwindSafe for CacheManifestEntry
impl Send for CacheManifestEntry
impl Sync for CacheManifestEntry
impl Unpin for CacheManifestEntry
impl UnsafeUnpin for CacheManifestEntry
impl UnwindSafe for CacheManifestEntry
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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