[−][src]Struct rebuilderd::models::Package
Fields
id: i32
name: String
version: String
status: String
distro: String
suite: String
architecture: String
url: String
build_id: Option<i32>
built_at: Option<NaiveDateTime>
attestation: Option<String>
checksum: Option<String>
retries: i32
next_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]
my_name: &str,
my_distro: &str,
my_suite: &str,
my_architecture: Option<&str>,
connection: &SqliteConnection
) -> Result<Vec<Package>>
pub fn get_by_api(
pkg: &PkgRelease,
connection: &SqliteConnection
) -> Result<Package>
[src]
pkg: &PkgRelease,
connection: &SqliteConnection
) -> Result<Package>
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]
my_distro: &str,
my_suite: &str,
my_architecture: &str,
connection: &SqliteConnection
) -> Result<Vec<Package>>
pub fn list_distro_suite_architecture_due_retries(
my_distro: &str,
my_suite: &str,
my_architecture: &str,
connection: &SqliteConnection
) -> Result<Vec<(i32, String)>>
[src]
my_distro: &str,
my_suite: &str,
my_architecture: &str,
connection: &SqliteConnection
) -> Result<Vec<(i32, String)>>
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]
&mut self,
rebuild: &Rebuild,
connection: &SqliteConnection
) -> Result<()>
pub fn reset_status_for_requeued_list(
pkgs: &[i32],
connection: &SqliteConnection
) -> Result<()>
[src]
pkgs: &[i32],
connection: &SqliteConnection
) -> Result<()>
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
pub fn as_changeset(self) -> Self::Changeset
[src]
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
pub fn as_changeset(self) -> Self::Changeset
[src]
impl Clone for Package
[src]
impl Debug for Package
[src]
impl HasTable for Package
[src]
impl<'ident> Identifiable for &'ident Package
[src]
type Id = &'ident i32
The type of this struct's identifier. Read more
pub fn id(self) -> Self::Id
[src]
impl PartialEq<Package> for Package
[src]
impl PkgVerCmp for Package
[src]
pub fn version(&self) -> &str
[src]
pub fn apply_fields(&mut self, new: &PkgRelease)
[src]
pub fn bump_package(
&mut self,
distro: &Distro,
new: &PkgRelease
) -> Result<Ordering>
[src]
&mut self,
distro: &Distro,
new: &PkgRelease
) -> Result<Ordering>
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]
(i32, String, String, String, String, String, String, String, Option<i32>, Option<NaiveDateTime>, Option<String>, Option<String>, i32, Option<NaiveDateTime>): Queryable<__ST, __DB>,
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
pub fn build(row: Self::Row) -> Self
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,