pub struct ExtensionRouter {
pub router: Router,
pub base_path: &'static str,
pub requires_auth: bool,
}Available on crate feature
core only.Fields§
§router: Router§base_path: &'static str§requires_auth: boolImplementations§
Source§impl ExtensionRouter
impl ExtensionRouter
pub const fn new(router: Router, base_path: &'static str) -> ExtensionRouter
Available on crate feature
web only.pub const fn public(router: Router, base_path: &'static str) -> ExtensionRouter
Available on crate feature
web only.pub const fn config(&self) -> ExtensionRouterConfig
Available on crate feature
web only.Trait Implementations§
Source§impl Clone for ExtensionRouter
impl Clone for ExtensionRouter
Source§fn clone(&self) -> ExtensionRouter
fn clone(&self) -> ExtensionRouter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtensionRouter
impl !RefUnwindSafe for ExtensionRouter
impl Send for ExtensionRouter
impl Sync for ExtensionRouter
impl Unpin for ExtensionRouter
impl UnsafeUnpin for ExtensionRouter
impl !UnwindSafe for ExtensionRouter
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