pub struct Client { /* private fields */ }
Expand description
Certificate Authorities are x509 certificates that are used to sign other x509 certificates. Attach a Certificate Authority to the Mutual TLS module to verify that the TLS certificate presented by a client has been signed by this CA. Certificate Authorities are used only for mTLS validation only and thus a private key is not included in the resource.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &CertificateAuthorityCreate,
) -> Result<CertificateAuthority, Error>
pub async fn create( &self, req: &CertificateAuthorityCreate, ) -> Result<CertificateAuthority, Error>
Upload a new Certificate Authority
Sourcepub async fn get(&self, id: &str) -> Result<CertificateAuthority, Error>
pub async fn get(&self, id: &str) -> Result<CertificateAuthority, Error>
Get detailed information about a certficate authority
Sourcepub async fn update(
&self,
req: &CertificateAuthorityUpdate,
) -> Result<CertificateAuthority, Error>
pub async fn update( &self, req: &CertificateAuthorityUpdate, ) -> Result<CertificateAuthority, Error>
Update attributes of a Certificate Authority by ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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
Mutably borrows from an owned value. Read more