Struct cargo_registry::download::VersionDownload
[−]
[src]
pub struct VersionDownload { pub id: i32, pub version_id: i32, pub downloads: i32, pub counted: i32, pub date: NaiveDate, pub processed: bool, }
Fields
id: i32
version_id: i32
downloads: i32
counted: i32
date: NaiveDate
processed: bool
Methods
impl VersionDownload
[src]
fn create_or_increment(version: i32, conn: &PgConnection) -> QueryResult<()>
[src]
fn encodable(self) -> EncodableVersionDownload
[src]
Trait Implementations
impl HasTable for VersionDownload
impl<'ident> Identifiable for &'ident VersionDownload
impl BelongsTo<Version> for VersionDownload
type ForeignKey = i32
type ForeignKeyColumn = version_id
fn foreign_key(&self) -> Option<&i32>
fn foreign_key_column() -> Self::ForeignKeyColumn
impl Debug for VersionDownload
[src]
impl Clone for VersionDownload
[src]
fn clone(&self) -> VersionDownload
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more