pub struct ApiBuilder<R> { /* private fields */ }Implementations§
Source§impl<R> ApiBuilder<R>
impl<R> ApiBuilder<R>
Sourcepub fn new_with_router(router: R, register_root: bool) -> Self
pub fn new_with_router(router: R, register_root: bool) -> Self
Create a new ApiBuilder with a custom scope
If register_root is true, the root routes (/, /tasks, /workers, /overview)
will be registered on the provided scope.
Auto Trait Implementations§
impl<R> Freeze for ApiBuilder<R>where
R: Freeze,
impl<R> RefUnwindSafe for ApiBuilder<R>where
R: RefUnwindSafe,
impl<R> Send for ApiBuilder<R>where
R: Send,
impl<R> Sync for ApiBuilder<R>where
R: Sync,
impl<R> Unpin for ApiBuilder<R>where
R: Unpin,
impl<R> UnwindSafe for ApiBuilder<R>where
R: UnwindSafe,
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