Crate gandi_v5_livedns_api

Source
Expand description

Gandi LiveDNS Api

Provides an abstration on top of Gandi LiveDNS RESTful Api.

A personal access token is required

§Examples

use std:env;
use gandi_v5_livedns_api::{Api, Endpoint};

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let personal_access_token = env::var("GANDI_V5_PAT")?;

    let api = Api::build(Endpoint::Prod, &personal_access_token)?;
}

Modules§

domains
A subset of LiveDNS Api relative to domains queries
records
A subset of LiveDNS Api relative to records queries

Structs§

Api
The Api entrypoint

Enums§

Endpoint
Used to select the endpoint required.