pub struct Client { /* private fields */ }
Expand description
Reserved Domains are hostnames that you can listen for traffic on. Domains can be used to listen for http, https or tls traffic. You may use a domain that you own by creating a CNAME record specified in the returned resource. This CNAME record points traffic for that domain to ngrok’s edge servers.
Implementations§
Source§impl Client
impl Client
pub fn new(c: Client) -> Self
Sourcepub async fn create(
&self,
req: &ReservedDomainCreate,
) -> Result<ReservedDomain, Error>
pub async fn create( &self, req: &ReservedDomainCreate, ) -> Result<ReservedDomain, Error>
Create a new reserved domain.
Sourcepub async fn get(&self, id: &str) -> Result<ReservedDomain, Error>
pub async fn get(&self, id: &str) -> Result<ReservedDomain, Error>
Get the details of a reserved domain.
Sourcepub async fn update(
&self,
req: &ReservedDomainUpdate,
) -> Result<ReservedDomain, Error>
pub async fn update( &self, req: &ReservedDomainUpdate, ) -> Result<ReservedDomain, Error>
Update the attributes of a reserved domain.
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