pub struct RequestConfig {
pub profiles: HashMap<String, RequestProfile>,
}Fields§
§profiles: HashMap<String, RequestProfile>Implementations§
Source§impl RequestConfig
impl RequestConfig
pub fn new(profiles: HashMap<String, RequestProfile>) -> Self
pub fn get_profile(&self, name: &str) -> Option<&RequestProfile>
Trait Implementations§
Source§impl Clone for RequestConfig
impl Clone for RequestConfig
Source§fn clone(&self) -> RequestConfig
fn clone(&self) -> RequestConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RequestConfig
impl Debug for RequestConfig
Source§impl<'de> Deserialize<'de> for RequestConfig
impl<'de> Deserialize<'de> for RequestConfig
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
Source§impl LoadConfig for RequestConfig
impl LoadConfig for RequestConfig
Source§impl Serialize for RequestConfig
impl Serialize for RequestConfig
Source§impl ValidateConfig for RequestConfig
impl ValidateConfig for RequestConfig
Auto Trait Implementations§
impl Freeze for RequestConfig
impl RefUnwindSafe for RequestConfig
impl Send for RequestConfig
impl Sync for RequestConfig
impl Unpin for RequestConfig
impl UnsafeUnpin for RequestConfig
impl UnwindSafe for RequestConfig
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