pub struct list_legal_rules;Expand description
GET /api/v1/legal/rules List all legal rules with optional filtering by role or category
Query parameters:
role(optional): Filter by role (syndic, coproprietaire, commissaire, conseil-copropriete, etc.)category(optional): Filter by category (assemblee-generale, travaux, coproprietaire, finance, syndic-mandat)
Returns:
200 OK- Array of legal rules matching filter criteria500 Internal Server Error- JSON parsing error (should not happen with static embed)
§Example
GET /api/v1/legal/rules?role=syndic&category=travaux
Response 200 OK:
[
{
"code": "T01",
"category": "travaux",
"roles": ["syndic"],
"article": "Art. 3.89 §5 2° CC",
"title": "Travaux urgents — syndic seul",
"content": "Le syndic peut exécuter seul les actes conservatoires...",
"keywords": ["urgents", "conservatoires", ...]
}
]Trait Implementations§
Source§impl HttpServiceFactory for list_legal_rules
impl HttpServiceFactory for list_legal_rules
Source§impl Path for list_legal_rules
impl Path for list_legal_rules
Source§impl SchemaReferences for list_legal_rules
impl SchemaReferences for list_legal_rules
Source§impl<'t> Tags<'t> for list_legal_rules
impl<'t> Tags<'t> for list_legal_rules
Auto Trait Implementations§
impl Freeze for list_legal_rules
impl RefUnwindSafe for list_legal_rules
impl Send for list_legal_rules
impl Sync for list_legal_rules
impl Unpin for list_legal_rules
impl UnwindSafe for list_legal_rules
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.