pub struct OrdrClient { /* private fields */ }
Expand description
Client to access the o!rdr API.
Cheap to clone.
Implementations§
Source§impl OrdrClient
impl OrdrClient
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new OrdrClient
based on a default OrdrClientBuilder
.
Sourcepub fn builder() -> OrdrClientBuilder
pub fn builder() -> OrdrClientBuilder
Create a new builder to create an OrdrClient
.
Sourcepub const fn custom_skin_info(&self, id: u32) -> GetSkinCustom<'_>
pub const fn custom_skin_info(&self, id: u32) -> GetSkinCustom<'_>
Get info of a custom skin.
You must provide the ID of the custom skin.
Sourcepub const fn render_with_replay_file<'a>(
&'a self,
replay_file: &'a [u8],
username: &'a str,
skin: &'a RenderSkinOption<'a>,
) -> CommissionRender<'a>
pub const fn render_with_replay_file<'a>( &'a self, replay_file: &'a [u8], username: &'a str, skin: &'a RenderSkinOption<'a>, ) -> CommissionRender<'a>
Send a render request to o!rdr via replay file.
Sourcepub const fn render_with_replay_url<'a>(
&'a self,
url: &'a str,
username: &'a str,
skin: &'a RenderSkinOption<'a>,
) -> CommissionRender<'a>
pub const fn render_with_replay_url<'a>( &'a self, url: &'a str, username: &'a str, skin: &'a RenderSkinOption<'a>, ) -> CommissionRender<'a>
Send a render request to o!rdr via replay url.
Sourcepub const fn render_list(&self) -> GetRenderList<'_>
pub const fn render_list(&self) -> GetRenderList<'_>
Get a paginated list of all renders.
Sourcepub const fn server_list(&self) -> GetServerList<'_>
pub const fn server_list(&self) -> GetServerList<'_>
Get a list of available servers.
Sourcepub const fn server_online_count(&self) -> GetServerOnlineCount<'_>
pub const fn server_online_count(&self) -> GetServerOnlineCount<'_>
Get the amount of online servers.
Sourcepub const fn skin_list(&self) -> GetSkinList<'_>
pub const fn skin_list(&self) -> GetSkinList<'_>
Get a paginated list of all available skins.
Trait Implementations§
Source§impl Clone for OrdrClient
impl Clone for OrdrClient
Source§fn clone(&self) -> OrdrClient
fn clone(&self) -> OrdrClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OrdrClient
impl !RefUnwindSafe for OrdrClient
impl Send for OrdrClient
impl Sync for OrdrClient
impl Unpin for OrdrClient
impl !UnwindSafe for OrdrClient
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