pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new(api_key: String) -> Self
pub async fn teams(self) -> Result<Vec<Team>>
pub async fn new_app( self, app_slug: &str, team_slug: &str, name: &str, ) -> Result<bool>
pub async fn new_team(self, team_slug: &str) -> Result<bool>
pub async fn set_team_name(self, team_slug: &str, team_name: &str) -> Result<()>
pub async fn login(self) -> Result<LoginResponse>
pub async fn upload_file( self, app_slug: impl AsRef<str>, path: impl AsRef<Path>, ) -> Result<()>
pub async fn upload_done(self, config: &CloudConfig) -> Result<()>
pub async fn log(self, name: &str) -> Result<String>
pub fn post(self, route: &str) -> ClientBuilder
pub fn get(self, route: &str) -> ClientBuilder
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
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