#[non_exhaustive]pub struct HttpConfig {
pub endpoint: Option<String>,
pub username: Option<String>,
pub password: Option<String>,
pub token: Option<String>,
pub root: Option<String>,
}Expand description
Config for Http service support.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.endpoint: Option<String>endpoint of this backend
username: Option<String>username of this backend
password: Option<String>password of this backend
token: Option<String>token of this backend
root: Option<String>root of this backend
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
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 Configurator for HttpConfig
impl Configurator for HttpConfig
Source§type Builder = HttpBuilder
type Builder = HttpBuilder
Associated builder for this configuration.
Source§fn from_uri(uri: &OperatorUri) -> Result<Self>
fn from_uri(uri: &OperatorUri) -> Result<Self>
Build configuration from a parsed URI with merged options.
Source§fn into_builder(self) -> Self::Builder
fn into_builder(self) -> Self::Builder
Convert this configuration into a service builder.
Source§impl Debug for HttpConfig
impl Debug for HttpConfig
Source§impl Default for HttpConfig
impl Default for HttpConfig
Source§fn default() -> HttpConfig
fn default() -> HttpConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HttpConfigwhere
HttpConfig: Default,
impl<'de> Deserialize<'de> for HttpConfigwhere
HttpConfig: Default,
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
impl Eq for HttpConfig
Source§impl PartialEq for HttpConfig
impl PartialEq for HttpConfig
Source§impl Serialize for HttpConfig
impl Serialize for HttpConfig
impl StructuralPartialEq for HttpConfig
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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