pub struct LinkChain {
pub steps: Vec<LinkChainStep>,
pub config: Arc<LinksConfig>,
}Expand description
Une chaîne de liens détectée
Fields§
§steps: Vec<LinkChainStep>§config: Arc<LinksConfig>Implementations§
Source§impl LinkChain
impl LinkChain
Sourcepub fn to_route_pattern(&self) -> String
pub fn to_route_pattern(&self) -> String
Génère le pattern de route Axum pour cette chaîne
Exemple forward: order → invoice → payment “/orders/{order_id}/invoices/{invoice_id}/payments”
Exemple reverse: payment ← invoice ← order “/payments/{payment_id}/invoice/{invoice_id}/orders”
Sourcepub fn is_reverse(&self) -> bool
pub fn is_reverse(&self) -> bool
Indique si cette chaîne est en sens inverse
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinkChain
impl RefUnwindSafe for LinkChain
impl Send for LinkChain
impl Sync for LinkChain
impl Unpin for LinkChain
impl UnwindSafe for LinkChain
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