ipfs_api_prelude/response/
log.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::response::serde;
10use crate::serde::Deserialize;
11
12#[derive(Debug, Deserialize)]
13#[serde(rename_all = "PascalCase")]
14pub struct LogLevelResponse {
15    pub message: String,
16}
17
18#[derive(Debug, Deserialize)]
19#[serde(rename_all = "PascalCase")]
20pub struct LogLsResponse {
21    #[serde(deserialize_with = "serde::deserialize_vec")]
22    pub strings: Vec<String>,
23}
24
25#[cfg(test)]
26mod tests {
27    deserialize_test!(v0_log_ls_0, LogLsResponse);
28}