pub async fn competition_view_leaderboard(
        &self,
        id: impl AsRef<str>,
    ) -> anyhow::Result<LeaderBoard> {
        Ok(Self::request_json(
            self.client
                .get(self.join_url(format!("competitions/{}/leaderboard/view", id.as_ref()))?),
        )
        .await?)
    }
/// View a leaderboard based on a competition name
///
/// Example
///
/// ```no_run
/// use kaggle::KaggleApiClient;
/// #[tokio::main]
/// async fn main() -> Result<(), Box<dyn std::error::Error>> {
///     let kaggle = KaggleApiClient::builder().build()?;
///     let resp = kaggle
///         .competition_view_leaderboard("digit-recognizer")
///         .await?;
///    Ok(())
/// }
/// ```
View a leaderboard based on a competition name
Example


View a leaderboard based on a competition name Example
pub async fn competition_view_leaderboard(
        &self,
        id: impl AsRef<str>,
    ) -> anyhow::Result<LeaderBoard> {
        Ok(Self::request_json(
            self.client
                .get(self.join_url(format!("competitions/{}/leaderboard/view", id.as_ref()))?),
        )
        .await?)
    }
pub async fn competition_view_leaderboard ( & self , id : impl AsRef < str > , ) -> anyhow :: Result < LeaderBoard > { Ok ( Self :: request_json ( self . client . get ( self . join_url ( format ! ( " " id as_ref ( ) ) ) ? ) , ) . await ? ) }
View a leaderboard based on a competition name
Example
View a leaderboard based on a competition name Example
&self
id
impl AsRef<str>
&self
id
impl AsRef<str>
[tokio::main]
async fn main() -> Result<(), Box> {
let kaggle = KaggleApiClient::builder().build()?;
let resp = kaggle
.competition_view_leaderboard("digit-recognizer")
.await?;
Ok(())
}
```
async fn main () - > Result< () Box > { let kaggle = KaggleApiClient :: builder () . build () ? ; let resp = kaggle . competition_view_leaderboard ( " digit - recognizer " ) . await? ; Ok (( )) } ` ` `