[][src]Struct sn0int::api::Client

pub struct Client { /* fields omitted */ }

Methods

impl Client
[src]

pub fn new(config: &Config) -> Result<Client>
[src]

pub fn authenticate<I: Into<String>>(&mut self, session: I)
[src]

pub fn random_session() -> String
[src]

pub fn request<T: DeserializeOwned + Debug>(
    &self,
    request: RequestBuilder,
    body: Body
) -> Result<T>
[src]

pub fn get<T: DeserializeOwned + Debug>(&self, url: &str) -> Result<T>
[src]

pub fn get_with<T, S>(&self, url: &str, query: &S) -> Result<T> where
    T: DeserializeOwned + Debug,
    S: Serialize + Debug
[src]

pub fn post<T, S>(&self, url: &str, body: &S) -> Result<T> where
    T: DeserializeOwned + Debug,
    S: Serialize + Debug
[src]

pub fn verify_session(&self) -> Result<String>
[src]

pub fn publish_module(
    &self,
    name: &str,
    body: String
) -> Result<PublishResponse>
[src]

pub fn download_module(
    &self,
    module: &ModuleID,
    version: &str
) -> Result<DownloadResponse>
[src]

pub fn query_module(&self, module: &ModuleID) -> Result<ModuleInfoResponse>
[src]

pub fn search(&self, query: &str) -> Result<Vec<SearchResponse>>
[src]

pub fn quickstart(&self) -> Result<Vec<ModuleInfoResponse>>
[src]

Auto Trait Implementations

impl Send for Client

impl Sync for Client

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> IntoSql for T
[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

Convert self to an expression for Diesel's query builder. Read more

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
    &'a Self: AsExpression<T>, 
[src]

Convert &self to an expression for Diesel's query builder. Read more

impl<T> Erased for T