hugging_face_client/api/
arxiv_repos.rs

1use serde::{Deserialize, Serialize};
2
3use crate::repo::Repo;
4
5/// Request of [`crate::client::Client::arxiv_repos`]
6#[derive(Debug, Serialize)]
7pub struct ArxivReposReq<'a> {
8  pub(crate) paper_id: &'a str,
9}
10
11impl<'a> ArxivReposReq<'a> {
12  pub fn new(arxiv_id: &'a str) -> Self {
13    ArxivReposReq { paper_id: arxiv_id }
14  }
15}
16
17/// Response of [`crate::client::Client::arxiv_repos`]
18#[derive(Debug, Deserialize)]
19pub struct ArxivReposRes {
20  pub models: Vec<Repo>,
21}