pub struct SnapshotRequest {
pub plan_id: PlanId,
pub as_of: Option<DateTime<Utc>>,
pub format: SnapshotFormat,
}Expand description
Append an EV snapshot (plan.snapshot).
Fields§
§plan_id: PlanId§as_of: Option<DateTime<Utc>>Status date of the reading’s PV; defaults to the planner clock’s now.
EV and AC are always the progress recorded when the snapshot is
taken, so a past as_of (over an hour back) marks it
SnapshotSummary::backfilled.
format: SnapshotFormatImplementations§
Source§impl SnapshotRequest
impl SnapshotRequest
pub fn new(plan_id: PlanId) -> Self
pub fn with_as_of(self, as_of: DateTime<Utc>) -> Self
pub fn with_format(self, format: SnapshotFormat) -> Self
Trait Implementations§
Source§impl Clone for SnapshotRequest
impl Clone for SnapshotRequest
Source§impl Debug for SnapshotRequest
impl Debug for SnapshotRequest
Source§impl PartialEq for SnapshotRequest
impl PartialEq for SnapshotRequest
impl StructuralPartialEq for SnapshotRequest
Auto Trait Implementations§
impl Freeze for SnapshotRequest
impl RefUnwindSafe for SnapshotRequest
impl Send for SnapshotRequest
impl Sync for SnapshotRequest
impl Unpin for SnapshotRequest
impl UnsafeUnpin for SnapshotRequest
impl UnwindSafe for SnapshotRequest
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