pub struct GenericConfig {
pub base_url: String,
pub headers: BTreeMap<String, String>,
pub types: BTreeMap<String, EndpointConfig>,
}Expand description
configuration for the generic rest adapter.
Fields§
§base_url: Stringbase url for the api.
headers: BTreeMap<String, String>authentication headers.
types: BTreeMap<String, EndpointConfig>type-to-endpoint mappings.
Trait Implementations§
Source§impl Clone for GenericConfig
impl Clone for GenericConfig
Source§fn clone(&self) -> GenericConfig
fn clone(&self) -> GenericConfig
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 Debug for GenericConfig
impl Debug for GenericConfig
Source§impl<'de> Deserialize<'de> for GenericConfig
impl<'de> Deserialize<'de> for GenericConfig
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 Freeze for GenericConfig
impl RefUnwindSafe for GenericConfig
impl Send for GenericConfig
impl Sync for GenericConfig
impl Unpin for GenericConfig
impl UnsafeUnpin for GenericConfig
impl UnwindSafe for GenericConfig
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