pub struct ScUserClient {
pub app_client: ScAppClient,
}Expand description
Client for requests that do require user authentication.
Fields§
§app_client: ScAppClientImplementations§
Source§impl ScUserClient
impl ScUserClient
pub fn new_custom<S: Into<String>>( base_url: S, user_token: impl Into<String>, ) -> ScUserClient
pub fn new(user_token: String) -> Self
Source§impl ScUserClient
impl ScUserClient
pub async fn get_characters_list( &self, region: impl Into<RegionId>, ) -> Result<Vec<Character>, Box<dyn Error>>
pub async fn get_clan_members( &self, region: impl Into<RegionId>, clan_id: impl Into<ClanId>, ) -> Result<Vec<ClanMember>, Box<dyn Error>>
pub async fn get_list_of_friends( &self, region: impl Into<RegionId>, character_id: impl Into<CharacterId>, ) -> Result<Vec<String>, Box<dyn Error>>
Auto Trait Implementations§
impl !Freeze for ScUserClient
impl !RefUnwindSafe for ScUserClient
impl Send for ScUserClient
impl Sync for ScUserClient
impl Unpin for ScUserClient
impl UnsafeUnpin for ScUserClient
impl !UnwindSafe for ScUserClient
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