manifest
Stable type · Cache
Tier: stable · Kind: type · Topic: Cache
| Python | Julia | Rust |
|---|---|---|
Manifest | Manifest | Manifest |
Python
class Manifest
Manifest(url: str, sha256_content: str, bytes: int, fetched_at: str, etag: Optional[str] = None, last_modified: Optional[str] = None, source_loader: Optional[str] = None, auth_realm: Optional[str] = None, schema: str = MANIFEST_SCHEMA_TAG)
Manifest.to_dict() -> dict
Manifest.to_json() -> str
@classmethod Manifest.from_dict(obj: dict) -> 'Manifest'
@classmethod Manifest.from_json(text: str) -> 'Manifest'
In-memory view of meta/<key>.json (see the schema for field meanings).
Members
to_dict— All nine fields, always present (the key carriesnullwhen N/A).to_json— Serialize exactly as the corpus does: sorted keys, indent 2, newline.
Julia
struct Manifest
Manifest(url::String, etag::Union{Nothing, String}, last_modified::Union{Nothing, String}, sha256_content::String, bytes::Int64, fetched_at::String, source_loader::Union{Nothing, String}, auth_realm::Union{Nothing, String})
Manifest(url, etag, last_modified, sha256_content, bytes, fetched_at, source_loader, auth_realm)
Manifest
Validation + provenance record for one cached blob. Field mapping (bead → here):
source-url → url, etag → etag, checksum → sha256_content,
fetched-at → fetched_at, byte-size → bytes.
Rust
pub struct Manifest {
pub auth_realm: Option<String>,
pub bytes: u64,
pub etag: Option<String>,
pub fetched_at: String,
pub last_modified: Option<String>,
pub schema: String,
pub sha256_content: String,
pub source_loader: Option<String>,
pub url: String,
}
impl Manifest { pub fn to_json_bytes(&self) -> Result<Vec<u8>> }
impl Manifest { pub fn from_json_bytes(data: &[u8]) -> Result<Manifest> }
impl Manifest { pub fn read(path: &Path) -> Result<Manifest> }
Validation + provenance record stored alongside every cached blob.
url, sha256_content, bytes, and fetched_at are required; the
remaining fields are always present but may be null. Credentials are
never stored — only the auth_realm name.