#[non_exhaustive]pub struct BasicAuthenticationConfiguration {
pub host: String,
pub port: i32,
pub credentials: String,
}Expand description
Provides the configuration information to connect to websites that require basic user authentication.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host: StringThe name of the website host you want to connect to using authentication credentials.
For example, the host name of https://a.example.com/page1.html is "a.example.com".
port: i32The port number of the website host you want to connect to using authentication credentials.
For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.
credentials: StringYour secret ARN, which you can create in Secrets Manager
You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.
Implementations§
source§impl BasicAuthenticationConfiguration
impl BasicAuthenticationConfiguration
sourcepub fn host(&self) -> &str
pub fn host(&self) -> &str
The name of the website host you want to connect to using authentication credentials.
For example, the host name of https://a.example.com/page1.html is "a.example.com".
sourcepub fn port(&self) -> i32
pub fn port(&self) -> i32
The port number of the website host you want to connect to using authentication credentials.
For example, the port for https://a.example.com/page1.html is 443, the standard port for HTTPS.
sourcepub fn credentials(&self) -> &str
pub fn credentials(&self) -> &str
Your secret ARN, which you can create in Secrets Manager
You use a secret if basic authentication credentials are required to connect to a website. The secret stores your credentials of user name and password.
source§impl BasicAuthenticationConfiguration
impl BasicAuthenticationConfiguration
sourcepub fn builder() -> BasicAuthenticationConfigurationBuilder
pub fn builder() -> BasicAuthenticationConfigurationBuilder
Creates a new builder-style object to manufacture BasicAuthenticationConfiguration.
Trait Implementations§
source§impl Clone for BasicAuthenticationConfiguration
impl Clone for BasicAuthenticationConfiguration
source§fn clone(&self) -> BasicAuthenticationConfiguration
fn clone(&self) -> BasicAuthenticationConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl PartialEq for BasicAuthenticationConfiguration
impl PartialEq for BasicAuthenticationConfiguration
source§fn eq(&self, other: &BasicAuthenticationConfiguration) -> bool
fn eq(&self, other: &BasicAuthenticationConfiguration) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BasicAuthenticationConfiguration
Auto Trait Implementations§
impl Freeze for BasicAuthenticationConfiguration
impl RefUnwindSafe for BasicAuthenticationConfiguration
impl Send for BasicAuthenticationConfiguration
impl Sync for BasicAuthenticationConfiguration
impl Unpin for BasicAuthenticationConfiguration
impl UnwindSafe for BasicAuthenticationConfiguration
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more