#[non_exhaustive]pub struct LoadBalancerTlsCertificateBuilder { /* private fields */ }
Expand description
A builder for LoadBalancerTlsCertificate
.
Implementations§
source§impl LoadBalancerTlsCertificateBuilder
impl LoadBalancerTlsCertificateBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the SSL/TLS certificate (my-certificate
).
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the SSL/TLS certificate (my-certificate
).
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the SSL/TLS certificate (my-certificate
).
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the SSL/TLS certificate.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the SSL/TLS certificate.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the SSL/TLS certificate.
sourcepub fn support_code(self, input: impl Into<String>) -> Self
pub fn support_code(self, input: impl Into<String>) -> Self
The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn set_support_code(self, input: Option<String>) -> Self
pub fn set_support_code(self, input: Option<String>) -> Self
The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn get_support_code(&self) -> &Option<String>
pub fn get_support_code(&self) -> &Option<String>
The support code. Include this code in your email to support when you have questions about your Lightsail load balancer or SSL/TLS certificate. This code enables our support team to look up your Lightsail information more easily.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The time when you created your SSL/TLS certificate.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The time when you created your SSL/TLS certificate.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The time when you created your SSL/TLS certificate.
sourcepub fn location(self, input: ResourceLocation) -> Self
pub fn location(self, input: ResourceLocation) -> Self
The Amazon Web Services Region and Availability Zone where you created your certificate.
sourcepub fn set_location(self, input: Option<ResourceLocation>) -> Self
pub fn set_location(self, input: Option<ResourceLocation>) -> Self
The Amazon Web Services Region and Availability Zone where you created your certificate.
sourcepub fn get_location(&self) -> &Option<ResourceLocation>
pub fn get_location(&self) -> &Option<ResourceLocation>
The Amazon Web Services Region and Availability Zone where you created your certificate.
sourcepub fn resource_type(self, input: ResourceType) -> Self
pub fn resource_type(self, input: ResourceType) -> Self
The resource type (LoadBalancerTlsCertificate
).
-
Instance
- A Lightsail instance (a virtual private server) -
StaticIp
- A static IP address -
KeyPair
- The key pair used to connect to a Lightsail instance -
InstanceSnapshot
- A Lightsail instance snapshot -
Domain
- A DNS zone -
PeeredVpc
- A peered VPC -
LoadBalancer
- A Lightsail load balancer -
LoadBalancerTlsCertificate
- An SSL/TLS certificate associated with a Lightsail load balancer -
Disk
- A Lightsail block storage disk -
DiskSnapshot
- A block storage disk snapshot
sourcepub fn set_resource_type(self, input: Option<ResourceType>) -> Self
pub fn set_resource_type(self, input: Option<ResourceType>) -> Self
The resource type (LoadBalancerTlsCertificate
).
-
Instance
- A Lightsail instance (a virtual private server) -
StaticIp
- A static IP address -
KeyPair
- The key pair used to connect to a Lightsail instance -
InstanceSnapshot
- A Lightsail instance snapshot -
Domain
- A DNS zone -
PeeredVpc
- A peered VPC -
LoadBalancer
- A Lightsail load balancer -
LoadBalancerTlsCertificate
- An SSL/TLS certificate associated with a Lightsail load balancer -
Disk
- A Lightsail block storage disk -
DiskSnapshot
- A block storage disk snapshot
sourcepub fn get_resource_type(&self) -> &Option<ResourceType>
pub fn get_resource_type(&self) -> &Option<ResourceType>
The resource type (LoadBalancerTlsCertificate
).
-
Instance
- A Lightsail instance (a virtual private server) -
StaticIp
- A static IP address -
KeyPair
- The key pair used to connect to a Lightsail instance -
InstanceSnapshot
- A Lightsail instance snapshot -
Domain
- A DNS zone -
PeeredVpc
- A peered VPC -
LoadBalancer
- A Lightsail load balancer -
LoadBalancerTlsCertificate
- An SSL/TLS certificate associated with a Lightsail load balancer -
Disk
- A Lightsail block storage disk -
DiskSnapshot
- A block storage disk snapshot
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
sourcepub fn load_balancer_name(self, input: impl Into<String>) -> Self
pub fn load_balancer_name(self, input: impl Into<String>) -> Self
The load balancer name where your SSL/TLS certificate is attached.
sourcepub fn set_load_balancer_name(self, input: Option<String>) -> Self
pub fn set_load_balancer_name(self, input: Option<String>) -> Self
The load balancer name where your SSL/TLS certificate is attached.
sourcepub fn get_load_balancer_name(&self) -> &Option<String>
pub fn get_load_balancer_name(&self) -> &Option<String>
The load balancer name where your SSL/TLS certificate is attached.
sourcepub fn is_attached(self, input: bool) -> Self
pub fn is_attached(self, input: bool) -> Self
When true
, the SSL/TLS certificate is attached to the Lightsail load balancer.
sourcepub fn set_is_attached(self, input: Option<bool>) -> Self
pub fn set_is_attached(self, input: Option<bool>) -> Self
When true
, the SSL/TLS certificate is attached to the Lightsail load balancer.
sourcepub fn get_is_attached(&self) -> &Option<bool>
pub fn get_is_attached(&self) -> &Option<bool>
When true
, the SSL/TLS certificate is attached to the Lightsail load balancer.
sourcepub fn status(self, input: LoadBalancerTlsCertificateStatus) -> Self
pub fn status(self, input: LoadBalancerTlsCertificateStatus) -> Self
The validation status of the SSL/TLS certificate. Valid values are below.
sourcepub fn set_status(self, input: Option<LoadBalancerTlsCertificateStatus>) -> Self
pub fn set_status(self, input: Option<LoadBalancerTlsCertificateStatus>) -> Self
The validation status of the SSL/TLS certificate. Valid values are below.
sourcepub fn get_status(&self) -> &Option<LoadBalancerTlsCertificateStatus>
pub fn get_status(&self) -> &Option<LoadBalancerTlsCertificateStatus>
The validation status of the SSL/TLS certificate. Valid values are below.
sourcepub fn domain_name(self, input: impl Into<String>) -> Self
pub fn domain_name(self, input: impl Into<String>) -> Self
The domain name for your SSL/TLS certificate.
sourcepub fn set_domain_name(self, input: Option<String>) -> Self
pub fn set_domain_name(self, input: Option<String>) -> Self
The domain name for your SSL/TLS certificate.
sourcepub fn get_domain_name(&self) -> &Option<String>
pub fn get_domain_name(&self) -> &Option<String>
The domain name for your SSL/TLS certificate.
sourcepub fn domain_validation_records(
self,
input: LoadBalancerTlsCertificateDomainValidationRecord
) -> Self
pub fn domain_validation_records( self, input: LoadBalancerTlsCertificateDomainValidationRecord ) -> Self
Appends an item to domain_validation_records
.
To override the contents of this collection use set_domain_validation_records
.
An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.
sourcepub fn set_domain_validation_records(
self,
input: Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>>
) -> Self
pub fn set_domain_validation_records( self, input: Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>> ) -> Self
An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.
sourcepub fn get_domain_validation_records(
&self
) -> &Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>>
pub fn get_domain_validation_records( &self ) -> &Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>>
An array of LoadBalancerTlsCertificateDomainValidationRecord objects describing the records.
sourcepub fn failure_reason(
self,
input: LoadBalancerTlsCertificateFailureReason
) -> Self
pub fn failure_reason( self, input: LoadBalancerTlsCertificateFailureReason ) -> Self
The validation failure reason, if any, of the certificate.
The following failure reasons are possible:
-
NO_AVAILABLE_CONTACTS
- This failure applies to email validation, which is not available for Lightsail certificates. -
ADDITIONAL_VERIFICATION_REQUIRED
- Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
-
DOMAIN_NOT_ALLOWED
- One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.
If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.
-
INVALID_PUBLIC_DOMAIN
- One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate forexample.invalidpublicdomain
becauseinvalidpublicdomain
is not a valid top-level domain. -
OTHER
- Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.
sourcepub fn set_failure_reason(
self,
input: Option<LoadBalancerTlsCertificateFailureReason>
) -> Self
pub fn set_failure_reason( self, input: Option<LoadBalancerTlsCertificateFailureReason> ) -> Self
The validation failure reason, if any, of the certificate.
The following failure reasons are possible:
-
NO_AVAILABLE_CONTACTS
- This failure applies to email validation, which is not available for Lightsail certificates. -
ADDITIONAL_VERIFICATION_REQUIRED
- Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
-
DOMAIN_NOT_ALLOWED
- One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.
If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.
-
INVALID_PUBLIC_DOMAIN
- One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate forexample.invalidpublicdomain
becauseinvalidpublicdomain
is not a valid top-level domain. -
OTHER
- Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.
sourcepub fn get_failure_reason(
&self
) -> &Option<LoadBalancerTlsCertificateFailureReason>
pub fn get_failure_reason( &self ) -> &Option<LoadBalancerTlsCertificateFailureReason>
The validation failure reason, if any, of the certificate.
The following failure reasons are possible:
-
NO_AVAILABLE_CONTACTS
- This failure applies to email validation, which is not available for Lightsail certificates. -
ADDITIONAL_VERIFICATION_REQUIRED
- Lightsail requires additional information to process this certificate request. This can happen as a fraud-protection measure, such as when the domain ranks within the Alexa top 1000 websites. To provide the required information, use the AWS Support Center to contact AWS Support.You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com.
-
DOMAIN_NOT_ALLOWED
- One or more of the domain names in the certificate request was reported as an unsafe domain by VirusTotal. To correct the problem, search for your domain name on the VirusTotal website. If your domain is reported as suspicious, see Google Help for Hacked Websites to learn what you can do.If you believe that the result is a false positive, notify the organization that is reporting the domain. VirusTotal is an aggregate of several antivirus and URL scanners and cannot remove your domain from a block list itself. After you correct the problem and the VirusTotal registry has been updated, request a new certificate.
If you see this error and your domain is not included in the VirusTotal list, visit the AWS Support Center and create a case.
-
INVALID_PUBLIC_DOMAIN
- One or more of the domain names in the certificate request is not valid. Typically, this is because a domain name in the request is not a valid top-level domain. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request, and ensure that all domain names in the request are for valid top-level domains. For example, you cannot request a certificate forexample.invalidpublicdomain
becauseinvalidpublicdomain
is not a valid top-level domain. -
OTHER
- Typically, this failure occurs when there is a typographical error in one or more of the domain names in the certificate request. Try to request a certificate again, correcting any spelling errors or typos that were in the failed request.
sourcepub fn issued_at(self, input: DateTime) -> Self
pub fn issued_at(self, input: DateTime) -> Self
The time when the SSL/TLS certificate was issued.
sourcepub fn set_issued_at(self, input: Option<DateTime>) -> Self
pub fn set_issued_at(self, input: Option<DateTime>) -> Self
The time when the SSL/TLS certificate was issued.
sourcepub fn get_issued_at(&self) -> &Option<DateTime>
pub fn get_issued_at(&self) -> &Option<DateTime>
The time when the SSL/TLS certificate was issued.
sourcepub fn set_issuer(self, input: Option<String>) -> Self
pub fn set_issuer(self, input: Option<String>) -> Self
The issuer of the certificate.
sourcepub fn get_issuer(&self) -> &Option<String>
pub fn get_issuer(&self) -> &Option<String>
The issuer of the certificate.
sourcepub fn key_algorithm(self, input: impl Into<String>) -> Self
pub fn key_algorithm(self, input: impl Into<String>) -> Self
The algorithm used to generate the key pair (the public and private key).
sourcepub fn set_key_algorithm(self, input: Option<String>) -> Self
pub fn set_key_algorithm(self, input: Option<String>) -> Self
The algorithm used to generate the key pair (the public and private key).
sourcepub fn get_key_algorithm(&self) -> &Option<String>
pub fn get_key_algorithm(&self) -> &Option<String>
The algorithm used to generate the key pair (the public and private key).
sourcepub fn not_after(self, input: DateTime) -> Self
pub fn not_after(self, input: DateTime) -> Self
The timestamp when the SSL/TLS certificate expires.
sourcepub fn set_not_after(self, input: Option<DateTime>) -> Self
pub fn set_not_after(self, input: Option<DateTime>) -> Self
The timestamp when the SSL/TLS certificate expires.
sourcepub fn get_not_after(&self) -> &Option<DateTime>
pub fn get_not_after(&self) -> &Option<DateTime>
The timestamp when the SSL/TLS certificate expires.
sourcepub fn not_before(self, input: DateTime) -> Self
pub fn not_before(self, input: DateTime) -> Self
The timestamp when the SSL/TLS certificate is first valid.
sourcepub fn set_not_before(self, input: Option<DateTime>) -> Self
pub fn set_not_before(self, input: Option<DateTime>) -> Self
The timestamp when the SSL/TLS certificate is first valid.
sourcepub fn get_not_before(&self) -> &Option<DateTime>
pub fn get_not_before(&self) -> &Option<DateTime>
The timestamp when the SSL/TLS certificate is first valid.
sourcepub fn renewal_summary(
self,
input: LoadBalancerTlsCertificateRenewalSummary
) -> Self
pub fn renewal_summary( self, input: LoadBalancerTlsCertificateRenewalSummary ) -> Self
An object that describes the status of the certificate renewal managed by Lightsail.
sourcepub fn set_renewal_summary(
self,
input: Option<LoadBalancerTlsCertificateRenewalSummary>
) -> Self
pub fn set_renewal_summary( self, input: Option<LoadBalancerTlsCertificateRenewalSummary> ) -> Self
An object that describes the status of the certificate renewal managed by Lightsail.
sourcepub fn get_renewal_summary(
&self
) -> &Option<LoadBalancerTlsCertificateRenewalSummary>
pub fn get_renewal_summary( &self ) -> &Option<LoadBalancerTlsCertificateRenewalSummary>
An object that describes the status of the certificate renewal managed by Lightsail.
sourcepub fn revocation_reason(
self,
input: LoadBalancerTlsCertificateRevocationReason
) -> Self
pub fn revocation_reason( self, input: LoadBalancerTlsCertificateRevocationReason ) -> Self
The reason the certificate was revoked. This value is present only when the certificate status is REVOKED
.
sourcepub fn set_revocation_reason(
self,
input: Option<LoadBalancerTlsCertificateRevocationReason>
) -> Self
pub fn set_revocation_reason( self, input: Option<LoadBalancerTlsCertificateRevocationReason> ) -> Self
The reason the certificate was revoked. This value is present only when the certificate status is REVOKED
.
sourcepub fn get_revocation_reason(
&self
) -> &Option<LoadBalancerTlsCertificateRevocationReason>
pub fn get_revocation_reason( &self ) -> &Option<LoadBalancerTlsCertificateRevocationReason>
The reason the certificate was revoked. This value is present only when the certificate status is REVOKED
.
sourcepub fn revoked_at(self, input: DateTime) -> Self
pub fn revoked_at(self, input: DateTime) -> Self
The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED
.
sourcepub fn set_revoked_at(self, input: Option<DateTime>) -> Self
pub fn set_revoked_at(self, input: Option<DateTime>) -> Self
The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED
.
sourcepub fn get_revoked_at(&self) -> &Option<DateTime>
pub fn get_revoked_at(&self) -> &Option<DateTime>
The timestamp when the certificate was revoked. This value is present only when the certificate status is REVOKED
.
sourcepub fn set_serial(self, input: Option<String>) -> Self
pub fn set_serial(self, input: Option<String>) -> Self
The serial number of the certificate.
sourcepub fn get_serial(&self) -> &Option<String>
pub fn get_serial(&self) -> &Option<String>
The serial number of the certificate.
sourcepub fn signature_algorithm(self, input: impl Into<String>) -> Self
pub fn signature_algorithm(self, input: impl Into<String>) -> Self
The algorithm that was used to sign the certificate.
sourcepub fn set_signature_algorithm(self, input: Option<String>) -> Self
pub fn set_signature_algorithm(self, input: Option<String>) -> Self
The algorithm that was used to sign the certificate.
sourcepub fn get_signature_algorithm(&self) -> &Option<String>
pub fn get_signature_algorithm(&self) -> &Option<String>
The algorithm that was used to sign the certificate.
sourcepub fn subject(self, input: impl Into<String>) -> Self
pub fn subject(self, input: impl Into<String>) -> Self
The name of the entity that is associated with the public key contained in the certificate.
sourcepub fn set_subject(self, input: Option<String>) -> Self
pub fn set_subject(self, input: Option<String>) -> Self
The name of the entity that is associated with the public key contained in the certificate.
sourcepub fn get_subject(&self) -> &Option<String>
pub fn get_subject(&self) -> &Option<String>
The name of the entity that is associated with the public key contained in the certificate.
sourcepub fn subject_alternative_names(self, input: impl Into<String>) -> Self
pub fn subject_alternative_names(self, input: impl Into<String>) -> Self
Appends an item to subject_alternative_names
.
To override the contents of this collection use set_subject_alternative_names
.
An array of strings that specify the alternate domains (example2.com
) and subdomains (blog.example.com
) for the certificate.
sourcepub fn set_subject_alternative_names(self, input: Option<Vec<String>>) -> Self
pub fn set_subject_alternative_names(self, input: Option<Vec<String>>) -> Self
An array of strings that specify the alternate domains (example2.com
) and subdomains (blog.example.com
) for the certificate.
sourcepub fn get_subject_alternative_names(&self) -> &Option<Vec<String>>
pub fn get_subject_alternative_names(&self) -> &Option<Vec<String>>
An array of strings that specify the alternate domains (example2.com
) and subdomains (blog.example.com
) for the certificate.
sourcepub fn build(self) -> LoadBalancerTlsCertificate
pub fn build(self) -> LoadBalancerTlsCertificate
Consumes the builder and constructs a LoadBalancerTlsCertificate
.
Trait Implementations§
source§impl Clone for LoadBalancerTlsCertificateBuilder
impl Clone for LoadBalancerTlsCertificateBuilder
source§fn clone(&self) -> LoadBalancerTlsCertificateBuilder
fn clone(&self) -> LoadBalancerTlsCertificateBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LoadBalancerTlsCertificateBuilder
impl Default for LoadBalancerTlsCertificateBuilder
source§fn default() -> LoadBalancerTlsCertificateBuilder
fn default() -> LoadBalancerTlsCertificateBuilder
source§impl PartialEq for LoadBalancerTlsCertificateBuilder
impl PartialEq for LoadBalancerTlsCertificateBuilder
source§fn eq(&self, other: &LoadBalancerTlsCertificateBuilder) -> bool
fn eq(&self, other: &LoadBalancerTlsCertificateBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LoadBalancerTlsCertificateBuilder
Auto Trait Implementations§
impl Freeze for LoadBalancerTlsCertificateBuilder
impl RefUnwindSafe for LoadBalancerTlsCertificateBuilder
impl Send for LoadBalancerTlsCertificateBuilder
impl Sync for LoadBalancerTlsCertificateBuilder
impl Unpin for LoadBalancerTlsCertificateBuilder
impl UnwindSafe for LoadBalancerTlsCertificateBuilder
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