ipfs_api_prelude/response/
filestore.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::serde::Deserialize;
10
11#[derive(Debug, Deserialize)]
12#[serde(rename_all = "PascalCase")]
13pub struct FilestoreDupsResponse {
14    #[serde(rename = "Ref")]
15    pub reference: String,
16
17    pub err: String,
18}
19
20#[derive(Debug, Deserialize)]
21#[serde(rename_all = "PascalCase")]
22pub struct FilestoreObject {
23    pub status: i32,
24    pub error_msg: String,
25    pub key: String,
26    pub file_path: String,
27    pub offset: u64,
28    pub size: u64,
29}
30
31pub type FilestoreLsResponse = FilestoreObject;
32
33pub type FilestoreVerifyResponse = FilestoreObject;