pub struct APIApp<S = ()>{ /* private fields */ }Implementations§
Source§impl<S> APIApp<S>
impl<S> APIApp<S>
pub fn new_with_state(state: S) -> Self
pub fn set_title(self, title: &str) -> Self
pub fn set_summary(self, summary: &str) -> Self
pub fn set_description(self, description: &str) -> Self
pub fn set_version(self, version: &str) -> Self
pub fn set_openapi_path(self, openapi_path: &str) -> Self
pub fn set_docs_path(self, docs_path: &str) -> Self
pub fn set_host(self, host: &str) -> Self
pub fn set_port(self, port: i32) -> Self
pub fn register_router(self, router: APIRouter<S>) -> Self
pub async fn run(self)
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for APIApp<S>where
S: Freeze,
impl<S = ()> !RefUnwindSafe for APIApp<S>
impl<S> Send for APIApp<S>
impl<S> Sync for APIApp<S>
impl<S> Unpin for APIApp<S>where
S: Unpin,
impl<S> UnsafeUnpin for APIApp<S>where
S: UnsafeUnpin,
impl<S = ()> !UnwindSafe for APIApp<S>
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