pub struct Client { /* private fields */ }
Implementations§
Source§impl Client
impl Client
pub fn new(authorization: &'static str) -> Self
pub async fn get_bot(&self, bot_id: &str) -> Response<Bot>
pub async fn search_bot( &self, search: &str, page: Option<usize>, ) -> Response<Data<Bot>>
pub async fn get_votes_list(&self, page: Option<usize>) -> Response<Data<Bot>>
pub async fn get_new_bot_list(&self) -> Response<Data<Bot>>
pub async fn get_vote_check( &self, bot_id: &str, user_id: &str, ) -> Response<VoteCheck>
pub async fn update( &self, bot_id: &str, servers: Option<usize>, shards: Option<usize>, ) -> ResponseUpdate
pub async fn get_user(&self, user_id: &str) -> Response<UserInfo>
pub async fn get_bot_widget( &self, bot_id: &str, widget_type: WidgetType, widget_query: Option<WidgetQuery>, ) -> String
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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