pub struct RecordSchedule {
pub id: String,
pub camera_id: String,
pub days: Json<Value>,
pub time_start: String,
pub time_end: String,
pub enabled: bool,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A recurring per-camera recording window, applied when the camera’s record_mode is scheduled
or scheduled_event. days is a JSON array of weekday ints (0=Mon..6=Sun); time_start /
time_end are “HH:MM” 24h in the SERVER’s LOCAL timezone (chrono::Local). When time_start >
time_end the window wraps past midnight (its early-morning portion is attributed to the day it
started on).
Fields§
§id: String§camera_id: String§days: Json<Value>§time_start: String§time_end: String§enabled: bool§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for RecordSchedule
impl Clone for RecordSchedule
Source§fn clone(&self) -> RecordSchedule
fn clone(&self) -> RecordSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordSchedule
impl Debug for RecordSchedule
Source§impl<'a, R: Row> FromRow<'a, R> for RecordSchedule
impl<'a, R: Row> FromRow<'a, R> for RecordSchedule
Auto Trait Implementations§
impl Freeze for RecordSchedule
impl RefUnwindSafe for RecordSchedule
impl Send for RecordSchedule
impl Sync for RecordSchedule
impl Unpin for RecordSchedule
impl UnsafeUnpin for RecordSchedule
impl UnwindSafe for RecordSchedule
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