Struct rosu_render::client::OrdrClient
source · 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 copy 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 !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