pub struct WingsClient { /* private fields */ }Implementations§
Source§impl WingsClient
impl WingsClient
pub fn new(base_url: String, token: String) -> Self
pub fn request_raw( &self, method: Method, endpoint: impl AsRef<str>, ) -> RequestBuilder
pub async fn delete_backups_backup( &self, backup: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_servers(&self) -> Result<Response, ApiHttpError>
pub async fn post_servers( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_power( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_utilization(&self) -> Result<Response, ApiHttpError>
pub async fn get_servers_server( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn delete_servers_server( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_backup( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn delete_servers_server_backup_backup( &self, server: Uuid, backup: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_backup_backup_restore( &self, server: Uuid, backup: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_commands( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_chmod( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_compress( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_files_contents( &self, server: Uuid, file: &str, download: bool, max_size: u64, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_copy( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_copy_many( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_copy_remote( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_create_directory( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_decompress( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_delete( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_files_fingerprints( &self, server: Uuid, algorithm: Algorithm, files: Vec<CompactString>, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_files_list( &self, server: Uuid, directory: &str, ignored: Vec<CompactString>, per_page: u64, page: u64, sort: DirectorySortingMode, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_files_list_directory( &self, server: Uuid, directory: &str, ) -> Result<Response, ApiHttpError>
pub async fn delete_servers_server_files_operations_operation( &self, server: Uuid, operation: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_files_pull( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_pull( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_pull_query( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn delete_servers_server_files_pull_pull( &self, server: Uuid, pull: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn put_servers_server_files_rename( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_search( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_files_write( &self, server: Uuid, file: &str, data: RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_install_abort( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_logs( &self, server: Uuid, lines: u64, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_logs_install( &self, server: Uuid, lines: u64, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_power( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_reinstall( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_schedules_schedule( &self, server: Uuid, schedule: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_schedules_schedule_abort( &self, server: Uuid, schedule: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_schedules_schedule_trigger( &self, server: Uuid, schedule: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_script( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_sync( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn delete_servers_server_transfer( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_transfer( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_utilization( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn get_servers_server_version( &self, server: Uuid, game: Game, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_ws_broadcast( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_ws_deny( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn post_servers_server_ws_permissions( &self, server: Uuid, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_system(&self) -> Result<Response, ApiHttpError>
pub async fn get_system_config(&self) -> Result<Response, ApiHttpError>
pub async fn get_system_logs(&self) -> Result<Response, ApiHttpError>
pub async fn get_system_logs_file( &self, file: &str, lines: u64, ) -> Result<Response, ApiHttpError>
pub async fn get_system_overview(&self) -> Result<Response, ApiHttpError>
pub async fn get_system_stats(&self) -> Result<Response, ApiHttpError>
pub async fn post_system_upgrade( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>
pub async fn get_transfers(&self) -> Result<Response, ApiHttpError>
pub async fn post_transfers(&self) -> Result<Response, ApiHttpError>
pub async fn post_transfers_files(&self) -> Result<Response, ApiHttpError>
pub async fn delete_transfers_server( &self, server: Uuid, ) -> Result<Response, ApiHttpError>
pub async fn post_update( &self, data: &RequestBody, ) -> Result<Response, ApiHttpError>
Auto Trait Implementations§
impl Freeze for WingsClient
impl RefUnwindSafe for WingsClient
impl Send for WingsClient
impl Sync for WingsClient
impl Unpin for WingsClient
impl UnsafeUnpin for WingsClient
impl UnwindSafe for WingsClient
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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