pub struct Discloud { /* private fields */ }Implementations§
Source§impl Discloud
impl Discloud
pub fn new(token: &str) -> Self
pub async fn remove_app_mod( &self, app_id: &str, mod_id: &str, ) -> Result<(), Error>
pub async fn edit_app_mod( &self, app_id: &str, mod_id: &str, perms: Vec<TeamPerms>, ) -> Result<TeamMember, Error>
pub async fn add_app_mod( &self, app_id: &str, mod_id: &str, perms: Vec<TeamPerms>, ) -> Result<TeamMember, Error>
pub async fn get_app_team(&self, id: &str) -> Result<Vec<TeamMember>, Error>
pub async fn get_user_info(&self) -> Result<User, Error>
pub async fn set_locale(&self, locale: Locale) -> Result<(), Error>
pub async fn get_app(&self, id: &str) -> Result<App, Error>
pub async fn get_all_apps(&self) -> Result<Vec<App>, Error>
pub async fn get_all_apps_status(&self) -> Result<Vec<AppStatus>, Error>
pub async fn get_app_status(&self, id: &str) -> Result<AppStatus, Error>
pub async fn get_app_logs(&self, id: &str) -> Result<AppLogs, Error>
pub async fn get_all_apps_logs(&self) -> Result<Vec<AppLogs>, Error>
pub async fn get_app_backup(&self, id: &str) -> Result<AppBackup, Error>
pub async fn get_all_apps_backup(&self) -> Result<Vec<AppBackup>, Error>
pub async fn start_app(&self, id: &str) -> Result<AppStartStatus, AppStartError>
pub async fn start_all_apps(&self) -> Result<AppStartAll, Error>
pub async fn stop_app(&self, id: &str) -> Result<(), AppStopError>
pub async fn stop_all_apps(&self) -> Result<AppStopAll, Error>
pub async fn restart_app(&self, id: &str) -> Result<(), Error>
pub async fn restart_all_apps(&self) -> Result<AppRestartAll, Error>
pub async fn set_app_ram( &self, id: &str, quantity: u32, ) -> Result<(), AppRamError>
pub async fn commit_app(&self)
pub async fn delete_app(&self, id: &str) -> Result<(), Error>
pub async fn delete_all_apps(&self) -> Result<AppDeleteAll, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Discloud
impl RefUnwindSafe for Discloud
impl Send for Discloud
impl Sync for Discloud
impl Unpin for Discloud
impl UnwindSafe for Discloud
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