pub struct get_legal_rule;Expand description
GET /api/v1/legal/rules/:code Get a specific legal rule by its code
Path parameters:
code: Rule code (e.g., AG01, T03, F01)
Returns:
200 OK- The requested legal rule404 Not Found- Rule not found500 Internal Server Error- JSON parsing error
§Example
GET /api/v1/legal/rules/AG01
Response 200 OK:
{
"code": "AG01",
"category": "assemblee-generale",
"roles": ["syndic", "coproprietaire", "commissaire", "conseil-copropriete"],
"article": "Art. 3.87 §3 CC",
"title": "Convocation AG ordinaire — délai minimum",
"content": "Le syndic convoque l'assemblée générale ordinaire au moins 15 jours avant...",
"keywords": ["convocation", "délai", "15 jours", "ordinaire", "ordre du jour"]
}Trait Implementations§
Source§impl HttpServiceFactory for get_legal_rule
impl HttpServiceFactory for get_legal_rule
Source§impl Path for get_legal_rule
impl Path for get_legal_rule
Source§impl SchemaReferences for get_legal_rule
impl SchemaReferences for get_legal_rule
Source§impl<'t> Tags<'t> for get_legal_rule
impl<'t> Tags<'t> for get_legal_rule
Auto Trait Implementations§
impl Freeze for get_legal_rule
impl RefUnwindSafe for get_legal_rule
impl Send for get_legal_rule
impl Sync for get_legal_rule
impl Unpin for get_legal_rule
impl UnwindSafe for get_legal_rule
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.