pub async fn build(self) -> ApiResult<Data> {
        if let None = Option::as_ref(&self.key) {
            return Err(Box::new(NotAuthenticatedError));
        }

        let req = request_common_build(&self.client, &self.key, &self.version, &self.url);

        let data = req.send().await?.json().await?;
        Ok(data)
    }
/// Get account data from api.guildwars2.com .
/// Returns `NotAuthenticatedError` when trying to access without api key
Get account data from api.guildwars2.com .
Returns `NotAuthenticatedError` when trying to access without api key
Get account data from api . guildwars2 . com . Returns ` NotAuthenticatedError ` when trying to access without api key
pub async fn build(self) -> ApiResult<Data> {
        if let None = Option::as_ref(&self.key) {
            return Err(Box::new(NotAuthenticatedError));
        }
        let req = request_common_build(&self.client, &self.key, &self.version, &self.url);
        let data = req.send().await?.json().await?;
        Ok(data)
    }
pub async fn build ( self ) -> ApiResult < Data > { if let None = Option :: as_ref ( & self . key ) { return Err ( Box :: new ( NotAuthenticatedError ) ) ; } let req = request_common_build ( & self . client , & self . key , & self . version , & self . url ) ; let data = req . send ( ) . await ? . json ( ) . await ? ; Ok ( data ) }
Get account data from api.guildwars2.com .
Get account data from api . guildwars2 . com .
self