pub struct Client { /* private fields */ }
Expand description
TLS Certificates are pairs of x509 certificates and their matching private key that can be used to terminate TLS traffic. TLS certificates are unused until they are attached to a Domain. TLS Certificates may also be provisioned by ngrok automatically for domains on which you have enabled automated certificate provisioning.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &TLSCertificateCreate,
) -> Result<TLSCertificate, Error>
pub async fn create( &self, req: &TLSCertificateCreate, ) -> Result<TLSCertificate, Error>
Upload a new TLS certificate
Sourcepub async fn get(&self, id: &str) -> Result<TLSCertificate, Error>
pub async fn get(&self, id: &str) -> Result<TLSCertificate, Error>
Get detailed information about a TLS certificate
Sourcepub async fn update(
&self,
req: &TLSCertificateUpdate,
) -> Result<TLSCertificate, Error>
pub async fn update( &self, req: &TLSCertificateUpdate, ) -> Result<TLSCertificate, Error>
Update attributes of a TLS Certificate 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