pub struct PcnReportResponse {
pub building_id: Uuid,
pub generated_at: DateTime<Utc>,
pub period_start: Option<DateTime<Utc>>,
pub period_end: Option<DateTime<Utc>>,
pub lines: Vec<PcnReportLineDto>,
pub total_amount: f64,
pub total_entries: usize,
}Expand description
Response containing PCN report data
Fields§
§building_id: UuidBuilding ID
generated_at: DateTime<Utc>Report generation timestamp
period_start: Option<DateTime<Utc>>Period start date (if filtered)
period_end: Option<DateTime<Utc>>Period end date (if filtered)
lines: Vec<PcnReportLineDto>PCN report lines (one per account with expenses)
total_amount: f64Total amount across all accounts
total_entries: usizeTotal number of expense entries
Trait Implementations§
Source§impl Debug for PcnReportResponse
impl Debug for PcnReportResponse
Source§impl<'de> Deserialize<'de> for PcnReportResponse
impl<'de> Deserialize<'de> for PcnReportResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PcnReportResponse
impl RefUnwindSafe for PcnReportResponse
impl Send for PcnReportResponse
impl Sync for PcnReportResponse
impl Unpin for PcnReportResponse
impl UnwindSafe for PcnReportResponse
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
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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