WingsClient

Struct WingsClient 

Source
pub struct WingsClient { /* private fields */ }

Implementations§

Source§

impl WingsClient

Source

pub fn new(base_url: String, token: String) -> Self

Source

pub fn request_raw( &self, method: Method, endpoint: impl AsRef<str>, ) -> RequestBuilder

Source

pub async fn delete_backups_backup( &self, backup: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_deauthorize_user( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers(&self) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_power( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_utilization(&self) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn delete_servers_server( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_backup( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn delete_servers_server_backup_backup( &self, server: Uuid, backup: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_backup_backup_restore( &self, server: Uuid, backup: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_commands( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_chmod( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_compress( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_files_contents( &self, server: Uuid, file: &str, download: bool, max_size: u64, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_copy( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_copy_many( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_copy_remote( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_create_directory( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_decompress( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_delete( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_files_fingerprints( &self, server: Uuid, algorithm: Algorithm, files: Vec<CompactString>, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_files_list( &self, server: Uuid, directory: &str, ignored: Vec<CompactString>, per_page: u64, page: u64, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_files_list_directory( &self, server: Uuid, directory: &str, ) -> Result<Response, ApiHttpError>

Source

pub async fn delete_servers_server_files_operations_operation( &self, server: Uuid, operation: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_files_pull( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_pull( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_pull_query( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn delete_servers_server_files_pull_pull( &self, server: Uuid, pull: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn put_servers_server_files_rename( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_files_write( &self, server: Uuid, file: &str, data: RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_install_abort( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_logs( &self, server: Uuid, lines: u64, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_logs_install( &self, server: Uuid, lines: u64, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_power( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_reinstall( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_schedules_schedule( &self, server: Uuid, schedule: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_schedules_schedule_abort( &self, server: Uuid, schedule: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_schedules_schedule_trigger( &self, server: Uuid, schedule: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_script( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_sync( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn delete_servers_server_transfer( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_transfer( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_utilization( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_servers_server_version( &self, server: Uuid, game: Game, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_ws_broadcast( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_ws_deny( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_servers_server_ws_permissions( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_system(&self) -> Result<Response, ApiHttpError>

Source

pub async fn get_system_config(&self) -> Result<Response, ApiHttpError>

Source

pub async fn get_system_logs(&self) -> Result<Response, ApiHttpError>

Source

pub async fn get_system_logs_file( &self, file: &str, lines: u64, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_system_overview(&self) -> Result<Response, ApiHttpError>

Source

pub async fn get_system_stats(&self) -> Result<Response, ApiHttpError>

Source

pub async fn post_system_upgrade( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>

Source

pub async fn get_transfers(&self) -> Result<Response, ApiHttpError>

Source

pub async fn post_transfers(&self) -> Result<Response, ApiHttpError>

Source

pub async fn post_transfers_files(&self) -> Result<Response, ApiHttpError>

Source

pub async fn delete_transfers_server( &self, server: Uuid, ) -> Result<Response, ApiHttpError>

Source

pub async fn post_update( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>

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.

§

impl<T> Instrument for T

§

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

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

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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