pub struct RoverClient { /* private fields */ }Implementations§
Source§impl RoverClient
impl RoverClient
pub fn new(api_key: String) -> Self
pub fn with_client(api_key: String, client: Client) -> Self
Sourcepub async fn get_discord_to_roblox(
&self,
guild_id: u64,
user_id: u64,
) -> Result<DiscordToRobloxResponse, RoverApiError>
pub async fn get_discord_to_roblox( &self, guild_id: u64, user_id: u64, ) -> Result<DiscordToRobloxResponse, RoverApiError>
Fetch a Discord member’s verified Roblox account
Sourcepub async fn get_roblox_to_discord(
&self,
guild_id: u64,
roblox_id: u64,
) -> Result<RobloxToDiscordResponse, RoverApiError>
pub async fn get_roblox_to_discord( &self, guild_id: u64, roblox_id: u64, ) -> Result<RobloxToDiscordResponse, RoverApiError>
Retrieve all Discord users in a guild associated with a specific Roblox ID
Sourcepub async fn update_user(
&self,
guild_id: u64,
user_id: u64,
) -> Result<UpdateUserResponse, RoverApiError>
pub async fn update_user( &self, guild_id: u64, user_id: u64, ) -> Result<UpdateUserResponse, RoverApiError>
Trigger a manual user update (requires RoVer Plus)
Sourcepub async fn revoke_api_key(&self) -> Result<(), RoverApiError>
pub async fn revoke_api_key(&self) -> Result<(), RoverApiError>
Revoke the current API key
Sourcepub fn get_rate_limit_status(&self) -> RateLimitStatus
pub fn get_rate_limit_status(&self) -> RateLimitStatus
Get current rate limit status
Auto Trait Implementations§
impl !RefUnwindSafe for RoverClient
impl !UnwindSafe for RoverClient
impl Freeze for RoverClient
impl Send for RoverClient
impl Sync for RoverClient
impl Unpin for RoverClient
impl UnsafeUnpin for RoverClient
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