pub struct SettingsEnforcedTls {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl SettingsEnforcedTls
impl SettingsEnforcedTls
sourcepub async fn get_user(
&self
) -> Result<Response<EnforcedTlsRequestResponse>, ClientError>
pub async fn get_user( &self ) -> Result<Response<EnforcedTlsRequestResponse>, ClientError>
Retrieve current Enforced TLS settings.
This function performs a GET
to the /user/settings/enforced_tls
endpoint.
This endpoint allows you to retrieve your current Enforced TLS settings.
The Enforced TLS settings specify whether or not the recipient is required to support TLS or have a valid certificate.
If either require_tls
or require_valid_cert
is set to true
, the recipient must support TLS 1.1 or higher or have a valid certificate. If these conditions are not met, Twilio SendGrid will drop the message and send a block event with “TLS required but not supported” as the description.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.
sourcepub async fn patch_user(
&self,
body: &EnforcedTlsRequestResponse
) -> Result<Response<EnforcedTlsRequestResponse>, ClientError>
pub async fn patch_user( &self, body: &EnforcedTlsRequestResponse ) -> Result<Response<EnforcedTlsRequestResponse>, ClientError>
Update Enforced TLS settings.
This function performs a PATCH
to the /user/settings/enforced_tls
endpoint.
This endpoint allows you to update your Enforced TLS settings.
To require TLS from recipients, set require_tls
to true
. If either require_tls
or require_valid_cert
is set to true
, the recipient must support TLS 1.1 or higher or have a valid certificate. If these conditions are not met, Twilio SendGrid will drop the message and send a block event with “TLS required but not supported” as the description.
Twilio SendGrid supports TLS 1.1 and higher and does not support older versions of TLS due to security vulnerabilities.
Parameters:
on_behalf_of: &str
– The license key provided with your New Relic account.