pub async fn competitions_data_list_files(
        &self,
        id: impl AsRef<str>,
    ) -> anyhow::Result<Vec<File>> {
        Ok(Self::request_json(
            self.client
                .get(self.join_url(format!("competitions/data/list/{}", id.as_ref()))?),
        )
        .await?)
    }
/// List all data files for a competition
///
/// Example
///
/// Overview of all files in the `m5-forecasting-accuracy` competition
///
/// ```no_run
/// use kaggle::KaggleApiClient;
///
/// #[tokio::main]
/// async fn main() -> Result<(), Box<dyn std::error::Error>> {
///     let kaggle = KaggleApiClient::builder().build()?;
///     let resp = kaggle
///         .competitions_data_list_files(
///             "m5-forecasting-accuracy",
///         )
///         .await?;
///     Ok(())
/// }
/// ```
List all data files for a competition
Example

Overview of all files in the `m5-forecasting-accuracy` competition


List all data files for a competition Example Overview of all files in the ` m5 - forecasting - accuracy ` competition
pub async fn competitions_data_list_files(
        &self,
        id: impl AsRef<str>,
    ) -> anyhow::Result<Vec<File>> {
        Ok(Self::request_json(
            self.client
                .get(self.join_url(format!("competitions/data/list/{}", id.as_ref()))?),
        )
        .await?)
    }
pub async fn competitions_data_list_files ( & self , id : impl AsRef < str > , ) -> anyhow :: Result < Vec < File > > { Ok ( Self :: request_json ( self . client . get ( self . join_url ( format ! ( " " id as_ref ( ) ) ) ? ) , ) . await ? ) }
List all data files for a competition
Example
List all data files for a competition 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
.competitions_data_list_files(
"m5-forecasting-accuracy",
)
.await?;
Ok(())
}
```
async fn main () - > Result< () Box > { let kaggle = KaggleApiClient :: builder () . build () ? ; let resp = kaggle . competitions_data_list_files ( " m5 - forecasting - accuracy " ) . await? ; Ok (( )) } ` ` `