pub struct ApiPath<'a> { /* private fields */ }Expand description
Pairs a resolved request path with a bounded-cardinality metric template.
For static endpoints (no dynamic segments) simply pass a &str —
the From<&str> impl uses the same string for both the request path
and the metric label.
For dynamic endpoints use ApiPath::templated to supply the
resolved path alongside its template:
ⓘ
let path = format!("/workflow/{}", workflow_id);
api.get(ApiPath::templated(&path, "/workflow/{workflowId}")).awaitImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ApiPath<'a>
impl<'a> RefUnwindSafe for ApiPath<'a>
impl<'a> Send for ApiPath<'a>
impl<'a> Sync for ApiPath<'a>
impl<'a> Unpin for ApiPath<'a>
impl<'a> UnsafeUnpin for ApiPath<'a>
impl<'a> UnwindSafe for ApiPath<'a>
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