pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &AgentIngressCreate,
) -> Result<AgentIngress, Error>
pub async fn create( &self, req: &AgentIngressCreate, ) -> Result<AgentIngress, Error>
Create a new Agent Ingress. The ngrok agent can be configured to connect to ngrok via the new set of addresses on the returned Agent Ingress.
Sourcepub async fn get(&self, id: &str) -> Result<AgentIngress, Error>
pub async fn get(&self, id: &str) -> Result<AgentIngress, Error>
Get the details of an Agent Ingress by ID.
Sourcepub async fn update(
&self,
req: &AgentIngressUpdate,
) -> Result<AgentIngress, Error>
pub async fn update( &self, req: &AgentIngressUpdate, ) -> Result<AgentIngress, Error>
Update attributes of an Agent Ingress 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