Skip to content

Commit

Permalink
Add recent_downloads field to FullCrate
Browse files Browse the repository at this point in the history
  • Loading branch information
ginger51011 authored and theduke committed Apr 15, 2023
1 parent cc864b3 commit cb349c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/async_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ impl Client {
homepage: data.homepage,
repository: data.repository,
total_downloads: data.downloads,
recent_downloads: data.recent_downloads,
max_version: data.max_version,
max_stable_version: data.max_stable_version,
created_at: data.created_at,
Expand Down
1 change: 1 addition & 0 deletions src/sync_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ impl SyncClient {
homepage: data.homepage,
repository: data.repository,
total_downloads: data.downloads,
recent_downloads: data.recent_downloads,
max_version: data.max_version,
max_stable_version: data.max_stable_version,
created_at: data.created_at,
Expand Down
1 change: 1 addition & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ pub struct FullCrate {
pub homepage: Option<String>,
pub repository: Option<String>,
pub total_downloads: u64,
pub recent_downloads: Option<u64>,
pub max_version: String,
pub max_stable_version: Option<String>,
pub created_at: DateTime<Utc>,
Expand Down

0 comments on commit cb349c8

Please sign in to comment.