Struct miHoYo_API::client::Client
source · pub struct Client<'a> { /* private fields */ }Implementations§
source§impl Client<'_>
impl Client<'_>
pub fn new() -> Self
👎Deprecated: I will implements this method.
pub fn set_from_env<'a>(&mut self) -> Result<()>
pub async fn get_game_accounts( &self, lang: Option<&str> ) -> Result<Vec<Account>>
pub async fn get_game_account( &self, lang: Option<&str>, game: Game ) -> Result<Account>
pub async fn get_record_cards( &self, hoyolab_id: Option<u32>, lang: Option<&str> ) -> Result<Vec<RecordCard>>
pub async fn get_genshin_notes( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<GenshinNote>
pub async fn get_genshin_partial_user( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<PartialUser>
pub async fn get_genshin_characters( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<Characters>
pub async fn get_genshin_user( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<UserWithCharacters>
pub async fn get_genshin_activities( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<()>
👎Deprecated: It so annoying to write A model for Deserialize. Its killed me.
pub async fn get_genshin_spiral_abyss( &self, uid: Option<u32>, previous: Option<bool>, lang: Option<&str> ) -> Result<SpiralAbyss>
pub async fn get_honkai_user( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<()>
👎Deprecated: the response data of send thats always {“data”:null,“message”:“Data is not public for the user”,“retcode”:10102}. and idk how to turn to public
pub async fn get_starrail_notes( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<StarRailNote>
pub async fn get_starrail_user( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<UserStats>
pub async fn get_starrail_characters( &self, uid: Option<u32>, lang: Option<&str> ) -> Result<Vec<CharacterDetails>>
pub async fn get_starrail_challenge( &self, uid: Option<u32>, previous: Option<bool>, lang: Option<&str> ) -> Result<Challenge>
pub async fn get_starrail_rogue( &self, uid: Option<u32>, schedule_type: Option<i32>, lang: Option<&str> ) -> Result<Rogue>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Client<'a>
impl<'a> Send for Client<'a>
impl<'a> Sync for Client<'a>
impl<'a> Unpin for Client<'a>
impl<'a> !UnwindSafe for Client<'a>
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