pub struct BuildingResponseDto {Show 16 fields
pub id: String,
pub acp_id: String,
pub name: String,
pub address: String,
pub city: String,
pub postal_code: String,
pub country: String,
pub total_units: i32,
pub total_tantiemes: i32,
pub construction_year: Option<i32>,
pub created_at: String,
pub updated_at: String,
pub units_count: i32,
pub quota_sum: String,
pub is_conformant: bool,
pub quota_delta: String,
}Fields§
§id: String§acp_id: StringStory 1.2 — FK vers acps.id (anciennement organization_id).
name: String§address: String§city: String§postal_code: String§country: String§total_units: i32§total_tantiemes: i32§construction_year: Option<i32>§created_at: String§updated_at: String§units_count: i32Nombre réel de units rattachées (COUNT(*) côté repo, JOIN units).
quota_sum: StringSomme des quotas (Decimal-as-string, ex: “1000” / “999.5” / “0”).
is_conformant: boolunits_count == total_units && quota_sum == 1000 (Decimal strict,
aucune tolérance d’arrondi).
quota_delta: StringDelta vs 1000 (positif = surplus, négatif = manque) — pour message UX.
Trait Implementations§
Source§impl ComposeSchema for BuildingResponseDto
impl ComposeSchema for BuildingResponseDto
Source§impl Debug for BuildingResponseDto
impl Debug for BuildingResponseDto
Source§impl Serialize for BuildingResponseDto
impl Serialize for BuildingResponseDto
Auto Trait Implementations§
impl Freeze for BuildingResponseDto
impl RefUnwindSafe for BuildingResponseDto
impl Send for BuildingResponseDto
impl Sync for BuildingResponseDto
impl Unpin for BuildingResponseDto
impl UnsafeUnpin for BuildingResponseDto
impl UnwindSafe for BuildingResponseDto
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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 moreCreates a shared type from an unshared type.