#[non_exhaustive]
pub struct DbDump {Show 14 fields
pub categories: Vec<Row>,
pub crate_downloads: Vec<Row>,
pub crate_owners: Vec<Row>,
pub crates: Vec<Row>,
pub crates_categories: Vec<Row>,
pub crates_keywords: Vec<Row>,
pub dependencies: Vec<Row>,
pub keywords: Vec<Row>,
pub metadata: Row,
pub reserved_crate_names: Vec<Row>,
pub teams: Vec<Row>,
pub users: Vec<Row>,
pub version_downloads: Vec<Row>,
pub versions: Vec<Row>,
}
Expand description
A crates.io DB dump with everything deserialized into memory. Use
Loader to load only parts of a dump, which is more efficient.
One of these full dumps can be loaded via db_dump::load_all.
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
| categories.csv |
id |
category |
slug |
description |
crates_cnt |
created_at |
path |
| crate_downloads.csv |
crate_id |
downloads |
| crate_owners.csv |
crate_id |
owner_id |
created_at |
created_by |
owner_kind |
| crates.csv |
id |
name |
updated_at |
created_at |
description |
homepage |
documentation |
readme |
repository |
max_upload_size |
max_features |
| crates_categories.csv |
crate_id |
category_id |
| crates_keywords.csv |
crate_id |
keyword_id |
| dependencies.csv |
id |
version_id |
crate_id |
req |
optional |
default_features |
features |
target |
kind |
explicit_name |
| keywords.csv |
id |
keyword |
crates_cnt |
created_at |
| metadata.csv |
total_downloads |
| reserved_crate_names.csv |
name |
| teams.csv |
id |
login |
github_id |
name |
avatar |
org_id |
| users.csv |
id |
gh_login |
name |
gh_avatar |
gh_id |
| version_downloads.csv |
version_id |
downloads |
date |
| versions.csv |
id |
crate_id |
num |
updated_at |
created_at |
downloads |
features |
yanked |
license |
crate_size |
published_by |
checksum |
links |
rust_version |
Returns the “default value” for a type.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.