pub struct Client { /* private fields */ }
Expand description
SSH Credentials are SSH public keys that can be used to start SSH tunnels via the ngrok SSH tunnel gateway.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &SSHCredentialCreate,
) -> Result<SSHCredential, Error>
pub async fn create( &self, req: &SSHCredentialCreate, ) -> Result<SSHCredential, Error>
Create a new ssh_credential from an uploaded public SSH key. This ssh credential can be used to start new tunnels via ngrok’s SSH gateway.
Sourcepub async fn get(&self, id: &str) -> Result<SSHCredential, Error>
pub async fn get(&self, id: &str) -> Result<SSHCredential, Error>
Get detailed information about an ssh_credential
Sourcepub async fn update(
&self,
req: &SSHCredentialUpdate,
) -> Result<SSHCredential, Error>
pub async fn update( &self, req: &SSHCredentialUpdate, ) -> Result<SSHCredential, Error>
Update attributes of an ssh_credential 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