pub struct OwnershipContractExporter;Expand description
Ownership Contract Exporter - Generates PDF for Contrat de Copropriété
Generates formal ownership contracts for unit purchases.
Implementations§
Source§impl OwnershipContractExporter
impl OwnershipContractExporter
Sourcepub fn export_to_pdf(
building: &Building,
unit: &Unit,
owner: &Owner,
ownership_percentage: f64,
ownership_start_date: DateTime<Utc>,
) -> Result<Vec<u8>, String>
pub fn export_to_pdf( building: &Building, unit: &Unit, owner: &Owner, ownership_percentage: f64, ownership_start_date: DateTime<Utc>, ) -> Result<Vec<u8>, String>
Export ownership contract to PDF bytes
Generates a Contrat de Copropriété including:
- Building information
- Unit details (number, floor, area, tantièmes)
- Owner information
- Ownership start date
- Percentage owned
- Rights and obligations
- General assembly rules
- Expense allocation rules
Auto Trait Implementations§
impl Freeze for OwnershipContractExporter
impl RefUnwindSafe for OwnershipContractExporter
impl Send for OwnershipContractExporter
impl Sync for OwnershipContractExporter
impl Unpin for OwnershipContractExporter
impl UnwindSafe for OwnershipContractExporter
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> Chain<T> for T
impl<T> Chain<T> for T
§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.