Struct sendgrid_api::certificates::Certificates
source · [−]pub struct Certificates {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl Certificates
impl Certificates
sourcepub async fn post_sso(
&self,
body: &PostSsoCertificatesRequest
) -> Result<SsoCertificateBody>
pub async fn post_sso(
&self,
body: &PostSsoCertificatesRequest
) -> Result<SsoCertificateBody>
Create an SSO Certificate.
This function performs a POST
to the /sso/certificates
endpoint.
This endpoint allows you to create an SSO certificate.
sourcepub async fn get_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
pub async fn get_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
Get All SSO Certificates by Integration.
This function performs a GET
to the /sso/integrations/{integration_id}/certificates
endpoint.
This endpoint allows you to retrieve all your IdP configurations by configuration ID.
The integration_id
expected by this endpoint is the id
returned in the response by the “Get All SSO Integrations” endpoint.
sourcepub async fn get_all_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
pub async fn get_all_sso_integrations_integration(
&self,
integration_id: &str
) -> Result<Vec<SsoCertificateBody>>
Get All SSO Certificates by Integration.
This function performs a GET
to the /sso/integrations/{integration_id}/certificates
endpoint.
As opposed to get_sso_integrations_integration
, this function returns all the pages of the request at once.
This endpoint allows you to retrieve all your IdP configurations by configuration ID.
The integration_id
expected by this endpoint is the id
returned in the response by the “Get All SSO Integrations” endpoint.
sourcepub async fn get_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
pub async fn get_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
Get an SSO Certificate.
This function performs a GET
to the /sso/certificates/{cert_id}
endpoint.
This endpoint allows you to retrieve an individual SSO certificate.
sourcepub async fn delete_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
pub async fn delete_sso_cert(&self, cert_id: &str) -> Result<SsoCertificateBody>
Delete an SSO Certificate.
This function performs a DELETE
to the /sso/certificates/{cert_id}
endpoint.
This endpoint allows you to delete an SSO certificate.
You can retrieve a certificate’s ID from the response provided by the “Get All SSO Integrations” endpoint.
sourcepub async fn patch_sso_cert(
&self,
cert_id: &str,
body: &PatchSsoCertificatesCertRequest
) -> Result<Vec<SsoErrorResponse>>
pub async fn patch_sso_cert(
&self,
cert_id: &str,
body: &PatchSsoCertificatesCertRequest
) -> Result<Vec<SsoErrorResponse>>
Update SSO Certificate.
This function performs a PATCH
to the /sso/certificates/{cert_id}
endpoint.
This endpoint allows you to update an existing certificate by ID.
You can retrieve a certificate’s ID from the response provided by the “Get All SSO Integrations” endpoint.
Auto Trait Implementations
impl !RefUnwindSafe for Certificates
impl Send for Certificates
impl Sync for Certificates
impl Unpin for Certificates
impl !UnwindSafe for Certificates
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more