pub struct RouterConfig { /* private fields */ }Expand description
Configuration builder for the JSON API router.
Allows controlling optional features like Swagger UI before building
the final axum::Router.
ⓘ
let router = cinderblock_json_api::RouterConfig::new(ctx)
.swagger_ui(true)
.build();Implementations§
Source§impl RouterConfig
impl RouterConfig
Auto Trait Implementations§
impl Freeze for RouterConfig
impl !RefUnwindSafe for RouterConfig
impl Send for RouterConfig
impl Sync for RouterConfig
impl Unpin for RouterConfig
impl UnsafeUnpin for RouterConfig
impl !UnwindSafe for RouterConfig
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