pub struct Builder<T>(/* private fields */);Expand description
A builder for HttpProxyConfig
Implementations§
Source§impl Builder<HostAndPortStage>
impl Builder<HostAndPortStage>
Sourcepub fn host_and_port(self, host_and_port: HostAndPort) -> Builder<Complete>
pub fn host_and_port(self, host_and_port: HostAndPort) -> Builder<Complete>
Sets the host_and_port field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn host_and_port(self, host_and_port: HostAndPort) -> Self
pub fn host_and_port(self, host_and_port: HostAndPort) -> Self
Sets the host_and_port field.
Sourcepub fn credentials(
self,
credentials: impl Into<Option<BasicCredentials>>,
) -> Self
pub fn credentials( self, credentials: impl Into<Option<BasicCredentials>>, ) -> Self
Sets the credentials field.
Sourcepub fn build(self) -> HttpProxyConfig
pub fn build(self) -> HttpProxyConfig
Consumes the builder, returning a HttpProxyConfig.
Trait Implementations§
Source§impl Default for Builder<HostAndPortStage>
impl Default for Builder<HostAndPortStage>
Source§impl From<HttpProxyConfig> for Builder<Complete>
impl From<HttpProxyConfig> for Builder<Complete>
Source§fn from(v: HttpProxyConfig) -> Self
fn from(v: HttpProxyConfig) -> Self
Converts to this type from the input type.