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

pub struct PhabricatorClient { /* fields omitted */ }

Methods

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(
    host: &str,
    api_token: &str,
    cert_identity_config: Option<CertIdentityConfig>
) -> ResultDynError<PhabricatorClient>
[src]

impl PhabricatorClient[src]

pub fn get_tasks<'a>(
    &'a self,
    parent_task_ids: Vec<&'a str>
) -> BoxFuture<'a, ResultDynError<Vec<Task>>>
[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> From<T> 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.