pub struct ConfigItem<P = PluginInstanceId> {
pub gateway: SgGateway<P>,
pub routes: BTreeMap<String, SgHttpRoute<P>>,
}
Fields§
§gateway: SgGateway<P>
§routes: BTreeMap<String, SgHttpRoute<P>>
Implementations§
Source§impl<P> ConfigItem<P>
impl<P> ConfigItem<P>
pub fn map_plugins<F, T>(self, f: F) -> ConfigItem<T>where
F: FnMut(P) -> T,
Trait Implementations§
Source§impl<P: Clone> Clone for ConfigItem<P>
impl<P: Clone> Clone for ConfigItem<P>
Source§fn clone(&self) -> ConfigItem<P>
fn clone(&self) -> ConfigItem<P>
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 moreSource§impl<P: Debug> Debug for ConfigItem<P>
impl<P: Debug> Debug for ConfigItem<P>
Source§impl<P> Default for ConfigItem<P>
impl<P> Default for ConfigItem<P>
Source§impl<'de, P> Deserialize<'de> for ConfigItem<P>
impl<'de, P> Deserialize<'de> for ConfigItem<P>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<P> Freeze for ConfigItem<P>
impl<P> RefUnwindSafe for ConfigItem<P>where
P: RefUnwindSafe,
impl<P> Send for ConfigItem<P>where
P: Send,
impl<P> Sync for ConfigItem<P>where
P: Sync,
impl<P> Unpin for ConfigItem<P>where
P: Unpin,
impl<P> UnwindSafe for ConfigItem<P>where
P: UnwindSafe + RefUnwindSafe,
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