[][src]Struct phab_lib::client::phabricator::PhabricatorClient

pub struct PhabricatorClient { /* fields omitted */ }

Implementations

impl PhabricatorClient[src]

pub fn clean_id(id: &str) -> &str[src]

This function will trim 'T' at the start of phabricator id. This is to cover case when you copy-paste the phabricator id from url, e.g. yourphabhost.com/T1234


let phabricator_id  = PhabricatorClient::clean_id("T1234");
assert_eq!(phabricator_id, "1234");

pub fn new(config: PhabricatorClientConfig) -> ResultDynError<PhabricatorClient>[src]

impl PhabricatorClient[src]

pub async fn get_user_by_phid(
    &self,
    user_phid: &str
) -> ResultDynError<Option<User>>
[src]

pub async fn get_task_by_id(
    &self,
    task_id: &str
) -> ResultDynError<Option<Task>>
[src]

pub async fn get_users_by_phids(
    &self,
    user_phids: Vec<&str>
) -> ResultDynError<Vec<User>>
[src]

pub async fn get_tasks_by_ids(
    &self,
    task_ids: Vec<&str>
) -> ResultDynError<Vec<Task>>
[src]

pub async fn get_task_family(
    &self,
    root_task_id: &str
) -> ResultDynError<Option<TaskFamily>>
[src]

pub fn get_child_tasks<'a>(
    &'a self,
    parent_task_ids: Vec<&'a str>
) -> BoxFuture<'a, ResultDynError<Vec<TaskFamily>>>
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Fake for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,