Struct wick_config::config::RestRouterConfig
source · pub struct RestRouterConfig { /* private fields */ }Implementations§
source§impl RestRouterConfig
impl RestRouterConfig
pub fn path_mut(&mut self) -> &mut String
pub fn tools(&self) -> Option<&Tools>
pub fn tools_mut(&mut self) -> &mut Option<Tools>
pub fn routes(&self) -> &[RestRoute]
pub fn routes_mut(&mut self) -> &mut Vec<RestRoute>
pub fn info(&self) -> Option<&Info>
pub fn info_mut(&mut self) -> &mut Option<Info>
Trait Implementations§
source§impl AssetManager for RestRouterConfig
impl AssetManager for RestRouterConfig
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
source§impl Clone for RestRouterConfig
impl Clone for RestRouterConfig
source§fn clone(&self) -> RestRouterConfig
fn clone(&self) -> RestRouterConfig
Returns a copy 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 moresource§impl Debug for RestRouterConfig
impl Debug for RestRouterConfig
source§impl PartialEq<RestRouterConfig> for RestRouterConfig
impl PartialEq<RestRouterConfig> for RestRouterConfig
source§fn eq(&self, other: &RestRouterConfig) -> bool
fn eq(&self, other: &RestRouterConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RestRouterConfig
impl Serialize for RestRouterConfig
source§impl TryFrom<RestRouterConfig> for RestRouter
impl TryFrom<RestRouterConfig> for RestRouter
§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
source§impl WickRouter for RestRouterConfig
impl WickRouter for RestRouterConfig
fn middleware(&self) -> Option<&Middleware>
fn middleware_mut(&mut self) -> Option<&mut Middleware>
fn path(&self) -> &str
impl StructuralPartialEq for RestRouterConfig
Auto Trait Implementations§
impl !RefUnwindSafe for RestRouterConfig
impl Send for RestRouterConfig
impl Sync for RestRouterConfig
impl Unpin for RestRouterConfig
impl !UnwindSafe for RestRouterConfig
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