pub struct Client { /* private fields */ }
Implementations§
source§impl Client
impl Client
pub fn new(config: &Config) -> Result<Client>
pub fn authenticate<I: Into<String>>(&mut self, session: I)
pub fn random_session() -> String
pub fn request<T: DeserializeOwned + Debug>( &self, request: RequestBuilder, body: Body ) -> Result<T>
pub fn get<T: DeserializeOwned + Debug>(&self, url: &str) -> Result<T>
pub fn get_with<T, S>(&self, url: &str, query: &S) -> Result<T>where T: DeserializeOwned + Debug, S: Serialize + Debug,
pub fn post<T, S>(&self, url: &str, body: &S) -> Result<T>where T: DeserializeOwned + Debug, S: Serialize + Debug,
pub fn verify_session(&self) -> Result<String>
pub fn publish_module( &self, name: &str, body: String ) -> Result<PublishResponse>
pub fn download_module( &self, module: &ModuleID, version: &str ) -> Result<DownloadResponse>
pub fn query_module(&self, module: &ModuleID) -> Result<ModuleInfoResponse>
pub fn search(&self, query: &str) -> Result<Vec<SearchResponse>>
pub fn quickstart(&self) -> Result<Vec<ModuleInfoResponse>>
pub fn latest_release(&self) -> Result<LatestResponse>
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more