iptmlib/lib.rs
1// iptmnet A CLI interface to the IPTMNet Rest API
2// Copyright (C) 2022 Ali Sajid Imami
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program. If not, see <https://www.gnu.org/licenses/>.
16
17pub mod models;
18// use models::Organism;
19use models::Protein;
20// use std::collections::HashMap;
21
22pub enum IPTMResultError {
23 DeserializingError(serde_json::Error),
24 APIRequestError(reqwest::Error),
25}
26
27pub enum IPTMResult {
28 Error(IPTMResultError),
29 ProteinResults {
30 num_results: usize,
31 results: Vec<Protein>,
32 },
33}