pub struct get_public_syndic_info;Expand description
GET /api/v1/public/buildings/:slug/syndic Get public syndic information for a building (no authentication required)
This endpoint is publicly accessible to comply with Belgian law requiring syndics to display contact information publicly.
§Path Parameters
slug- URL-friendly building identifier (e.g., “residence-les-jardins-brussels”)
§Returns
200 OK- Public syndic information404 Not Found- Building not found or slug invalid500 Internal Server Error- Database error
§Example
GET /api/v1/public/buildings/residence-les-jardins-brussels/syndic
Response 200 OK:
{
"building_name": "Résidence Les Jardins",
"building_address": "123 Rue de la Paix",
"building_city": "Brussels",
"building_postal_code": "1000",
"building_country": "Belgium",
"slug": "residence-les-jardins-brussels",
"syndic_name": "Syndic ASBL",
"syndic_email": "contact@syndic.be",
"syndic_phone": "+32 2 123 4567",
"syndic_address": "Avenue Louise 123, 1000 Brussels",
"syndic_office_hours": "Mon-Fri 9h-17h",
"syndic_emergency_contact": "+32 475 123 456",
"has_syndic_info": true
}Trait Implementations§
Auto Trait Implementations§
impl Freeze for get_public_syndic_info
impl RefUnwindSafe for get_public_syndic_info
impl Send for get_public_syndic_info
impl Sync for get_public_syndic_info
impl Unpin for get_public_syndic_info
impl UnwindSafe for get_public_syndic_info
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.