pub struct BackupJob {Show 18 fields
pub id: String,
pub policy_id: Option<String>,
pub destination_id: Option<String>,
pub kind: String,
pub camera_ids: Json<Value>,
pub from_time: Option<DateTime<Utc>>,
pub to_time: Option<DateTime<Utc>>,
pub incident_lock_only: bool,
pub status: String,
pub files_total: i64,
pub files_copied: i64,
pub bytes_copied: i64,
pub error: Option<String>,
pub output_path: Option<String>,
pub output_url: Option<String>,
pub started_at: Option<DateTime<Utc>>,
pub finished_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
}Expand description
A single backup run (policy-scheduled, manually triggered, or an on-demand archive export).
Fields§
§id: String§policy_id: Option<String>§destination_id: Option<String>§kind: Stringpolicy | on_demand_archive.
camera_ids: Json<Value>§from_time: Option<DateTime<Utc>>§to_time: Option<DateTime<Utc>>§incident_lock_only: bool§status: Stringpending | running | completed | error.
files_total: i64§files_copied: i64§bytes_copied: i64§error: Option<String>§output_path: Option<String>Filesystem path of the produced artifact (archive .zip), if any.
output_url: Option<String>Browser-fetchable URL of the produced artifact (under /media/archives/…), if any.
started_at: Option<DateTime<Utc>>§finished_at: Option<DateTime<Utc>>§created_at: DateTime<Utc>Trait Implementations§
Source§impl<'a, R: Row> FromRow<'a, R> for BackupJobwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for BackupJobwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Json<Value>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for BackupJob
impl RefUnwindSafe for BackupJob
impl Send for BackupJob
impl Sync for BackupJob
impl Unpin for BackupJob
impl UnsafeUnpin for BackupJob
impl UnwindSafe for BackupJob
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more