Struct discloud_rs::Discloud

source ·
pub struct Discloud { /* private fields */ }

Implementations§

source§

impl Discloud

source

pub fn new(token: &str) -> Self

source

pub async fn get_user_info(&self) -> Result<User, Error>

source

pub async fn set_locale(&self, locale: Locale) -> Result<(), Error>

source

pub async fn get_app(&self, id: &str) -> Result<App, Error>

source

pub async fn get_all_apps(&self) -> Result<Vec<App>, Error>

source

pub async fn get_all_apps_status(&self) -> Result<Vec<AppStatus>, Error>

source

pub async fn get_app_status(&self, id: &str) -> Result<AppStatus, Error>

source

pub async fn get_app_logs(&self, id: &str) -> Result<AppLogs, Error>

source

pub async fn get_all_apps_logs(&self) -> Result<Vec<AppLogs>, Error>

source

pub async fn get_app_backup(&self, id: &str) -> Result<AppBackup, Error>

source

pub async fn get_all_apps_backup(&self) -> Result<Vec<AppBackup>, Error>

source

pub async fn start_app(&self, id: &str) -> Result<AppStartStatus, AppStartError>

source

pub async fn start_all_apps(&self) -> Result<AppStartAll, Error>

source

pub async fn stop_app(&self, id: &str) -> Result<(), AppStopError>

source

pub async fn stop_all_apps(&self) -> Result<AppStopAll, Error>

source

pub async fn restart_app(&self, id: &str) -> Result<(), Error>

source

pub async fn restart_all_apps(&self) -> Result<AppRestartAll, Error>

source

pub async fn set_app_ram( &self, id: &str, quantity: u32 ) -> Result<(), AppRamError>

source

pub async fn commit_app(&self)

source

pub async fn delete_app(&self, id: &str) -> Result<(), Error>

source

pub async fn delete_all_apps(&self) -> Result<AppDeleteAll, Error>

Trait Implementations§

source§

impl Clone for Discloud

source§

fn clone(&self) -> Discloud

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more