#[non_exhaustive]
pub struct DbDump {Show 14 fields
pub badges: Vec<Row>,
pub categories: 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.
badges.csv |
crate_id |
badge_type |
attributes |
categories.csv |
id |
category |
slug |
description |
crates_cnt |
created_at |
path |
crate_owners.csv |
crate_id |
owner_id |
created_at |
created_by |
owner_kind |
crates.csv |
id |
name |
updated_at |
created_at |
downloads |
description |
homepage |
documentation |
readme |
repository |
max_upload_size |
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 |
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 |
Create a lazy index of those tables that have a unique ID column as
primary key.
This call does no work up front. Each index is built lazily upon first
access through one of the Index
struct’s methods.
Returns the “default value” for a type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.