ipfs_api_prelude/request/
dns.rs

1// Copyright 2017 rust-ipfs-api Developers
2//
3// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
4// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
5// http://opensource.org/licenses/MIT>, at your option. This file may not be
6// copied, modified, or distributed except according to those terms.
7//
8
9use crate::request::ApiRequest;
10use serde::Serialize;
11
12#[derive(Serialize)]
13pub struct Dns<'a> {
14    #[serde(rename = "arg")]
15    pub link: &'a str,
16
17    pub recursive: bool,
18}
19
20impl<'a> ApiRequest for Dns<'a> {
21    const PATH: &'static str = "/dns";
22}