pub struct DnsClient {
pub base_url: Url,
/* private fields */
}Expand description
The Cloud DNS API client.
Fields§
§base_url: UrlImplementations§
Source§impl DnsClient
impl DnsClient
pub fn new<S, B>(service: S, project_id: &str) -> Self
pub fn changes(&self) -> ChangesHandler<'_>
pub fn dns_keys(&self) -> DnsKeysHandler<'_>
pub fn managed_zone_operations(&self) -> ManagedZoneOperationsHandler<'_>
pub fn managed_zones(&self) -> ManagedZonesHandler<'_>
pub fn policies(&self) -> PoliciesHandler<'_>
pub fn projects(&self) -> ProjectsHandler<'_>
pub fn resource_record_sets(&self) -> ResourceRecordSetsHandler<'_>
Source§impl DnsClient
impl DnsClient
pub fn absolute_url(&self, path: impl AsRef<str>) -> Result<Url>
pub async fn post<P: Serialize + ?Sized, R: FromResponse>( &self, route: impl AsRef<str>, body: Option<&P>, ) -> Result<R>
pub async fn get<R, A>(&self, route: A) -> Result<R>
pub async fn patch<R, A, B>(&self, route: A, body: Option<&B>) -> Result<R>
pub async fn put<R, A, B>(&self, route: A, body: Option<&B>) -> Result<R>
pub async fn delete<R, A>(&self, route: A) -> Result<R>
pub async fn request_builder(&self, url: Url, method: Method) -> Result<Builder>
pub async fn execute(&self, request: Request<Body>) -> Result<Response<Body>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnsClient
impl !RefUnwindSafe for DnsClient
impl Send for DnsClient
impl Sync for DnsClient
impl Unpin for DnsClient
impl !UnwindSafe for DnsClient
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