// Copyright 2017 rust-ipfs-api Developers // // Licensed under the Apache License, Version 2.0, or the MIT license , at your option. This file may not be // copied, modified, or distributed except according to those terms. // use crate::serde::Deserialize; #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct BlockPutResponse { pub key: String, pub size: u64, } #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct BlockRmResponse { pub hash: String, pub error: Option, } #[derive(Debug, Deserialize)] #[serde(rename_all = "PascalCase")] pub struct BlockStatResponse { pub key: String, pub size: u64, } #[cfg(test)] mod tests { deserialize_test!(v0_block_stat_0, BlockStatResponse); }