mirror of
https://github.com/SeriousBug/gandi-live-dns-rust
synced 2024-05-19 03:39:04 -05:00
16 lines
397 B
Rust
16 lines
397 B
Rust
|
pub(crate) struct GandiAPI<'t> {
|
||
|
pub(crate) base_url: &'t str,
|
||
|
pub(crate) fqdn: &'t str,
|
||
|
pub(crate) rrset_name: &'t str,
|
||
|
pub(crate) rrset_type: &'t str,
|
||
|
}
|
||
|
|
||
|
impl<'t> GandiAPI<'t> {
|
||
|
pub(crate) fn url(&self) -> String {
|
||
|
format!(
|
||
|
"{}/v5/livedns/domains/{}/records/{}/{}",
|
||
|
self.base_url, self.fqdn, self.rrset_name, self.rrset_type
|
||
|
)
|
||
|
}
|
||
|
}
|