[][src]Struct rebuilderd::models::Package

pub struct Package {
    pub id: i32,
    pub name: String,
    pub version: String,
    pub status: String,
    pub distro: String,
    pub suite: String,
    pub architecture: String,
    pub url: String,
    pub build_id: Option<i32>,
    pub built_at: Option<NaiveDateTime>,
    pub attestation: Option<String>,
    pub checksum: Option<String>,
    pub retries: i32,
    pub next_retry: Option<NaiveDateTime>,
}

Fields

id: i32name: Stringversion: Stringstatus: Stringdistro: Stringsuite: Stringarchitecture: Stringurl: Stringbuild_id: Option<i32>built_at: Option<NaiveDateTime>attestation: Option<String>checksum: Option<String>retries: i32next_retry: Option<NaiveDateTime>

Implementations

impl Package[src]

pub fn get_id(my_id: i32, connection: &SqliteConnection) -> Result<Package>[src]

pub fn get_by(
    my_name: &str,
    my_distro: &str,
    my_suite: &str,
    my_architecture: Option<&str>,
    connection: &SqliteConnection
) -> Result<Vec<Package>>
[src]

pub fn get_by_api(
    pkg: &PkgRelease,
    connection: &SqliteConnection
) -> Result<Package>
[src]

pub fn list(connection: &SqliteConnection) -> Result<Vec<Package>>[src]

pub fn list_distro_suite_architecture(
    my_distro: &str,
    my_suite: &str,
    my_architecture: &str,
    connection: &SqliteConnection
) -> Result<Vec<Package>>
[src]

pub fn list_distro_suite_architecture_due_retries(
    my_distro: &str,
    my_suite: &str,
    my_architecture: &str,
    connection: &SqliteConnection
) -> Result<Vec<(i32, String)>>
[src]

pub fn bump_version(&mut self, connection: &SqliteConnection) -> Result<()>[src]

pub fn schedule_retry(&mut self, retry_delay_base: i64)[src]

pub fn update_status_safely(
    &mut self,
    rebuild: &Rebuild,
    connection: &SqliteConnection
) -> Result<()>
[src]

pub fn reset_status_for_requeued_list(
    pkgs: &[i32],
    connection: &SqliteConnection
) -> Result<()>
[src]

pub fn delete(my_id: i32, connection: &SqliteConnection) -> Result<()>[src]

pub fn into_api_item(self) -> Result<PkgRelease>[src]

Trait Implementations

impl<'update> AsChangeset for &'update Package[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<name, &'update String>, Eq<version, &'update String>, Eq<status, &'update String>, Eq<distro, &'update String>, Eq<suite, &'update String>, Eq<architecture, &'update String>, Eq<url, &'update String>, Eq<build_id, &'update Option<i32>>, Eq<built_at, &'update Option<NaiveDateTime>>, Eq<attestation, &'update Option<String>>, Eq<checksum, &'update Option<String>>, Eq<retries, &'update i32>, Eq<next_retry, &'update Option<NaiveDateTime>>) as AsChangeset>::Changeset

The update statement this type represents

impl<'update> AsChangeset for Package[src]

type Target = table

The table which Self::Changeset will be updating

type Changeset = <(Eq<name, String>, Eq<version, String>, Eq<status, String>, Eq<distro, String>, Eq<suite, String>, Eq<architecture, String>, Eq<url, String>, Eq<build_id, Option<i32>>, Eq<built_at, Option<NaiveDateTime>>, Eq<attestation, Option<String>>, Eq<checksum, Option<String>>, Eq<retries, i32>, Eq<next_retry, Option<NaiveDateTime>>) as AsChangeset>::Changeset

The update statement this type represents

impl Clone for Package[src]

impl Debug for Package[src]

impl HasTable for Package[src]

type Table = table

The table this type is associated with.

impl<'ident> Identifiable for &'ident Package[src]

type Id = &'ident i32

The type of this struct's identifier. Read more

impl PartialEq<Package> for Package[src]

impl PkgVerCmp for Package[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Package where
    (i32, String, String, String, String, String, String, String, Option<i32>, Option<NaiveDateTime>, Option<String>, Option<String>, i32, Option<NaiveDateTime>): Queryable<__ST, __DB>, 
[src]

type Row = <(i32, String, String, String, String, String, String, String, Option<i32>, Option<NaiveDateTime>, Option<String>, Option<String>, i32, Option<NaiveDateTime>) as Queryable<__ST, __DB>>::Row

The Rust type you'd like to map from. Read more

impl StructuralPartialEq for Package[src]

Auto Trait Implementations

impl RefUnwindSafe for Package

impl Send for Package

impl Sync for Package

impl Unpin for Package

impl UnwindSafe for Package

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,