phab-lib 0.3.1

CLI utility client for phabricator (https://www.phacility.com/phabricator)
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::dto::Task;
use crate::dto::Watchlist;
use crate::types::ResultAnyError;

pub trait PhabStorage {
  fn add_to_watchlist(&mut self, watchlist_id: &str, task: &Task) -> ResultAnyError<()>;
  fn create_watchlist(&mut self, watchlist: &Watchlist) -> ResultAnyError<Watchlist>;
  fn get_watchlists(&mut self) -> ResultAnyError<Vec<Watchlist>>;
  fn get_watchlist_by_id(&mut self, watchlist_id: &str) -> ResultAnyError<Option<Watchlist>>;
}