pub struct QueryParams {Show 14 fields
pub paper_id: String,
pub query_text: Option<String>,
pub fields: Option<Vec<PaperField>>,
pub publication_types: Option<Vec<PublicationTypes>>,
pub open_access_pdf: Option<bool>,
pub min_citation_count: Option<u32>,
pub publication_date_or_year: Option<String>,
pub year: Option<String>,
pub venue: Option<Vec<String>>,
pub fields_of_study: Option<Vec<FieldsOfStudy>>,
pub offset: Option<u64>,
pub limit: Option<u64>,
pub token: Option<String>,
pub sort: Option<String>,
}
Fields§
§paper_id: String
§query_text: Option<String>
§fields: Option<Vec<PaperField>>
§publication_types: Option<Vec<PublicationTypes>>
§open_access_pdf: Option<bool>
§min_citation_count: Option<u32>
§publication_date_or_year: Option<String>
§year: Option<String>
§venue: Option<Vec<String>>
§fields_of_study: Option<Vec<FieldsOfStudy>>
§offset: Option<u64>
§limit: Option<u64>
§token: Option<String>
§sort: Option<String>
Implementations§
Source§impl QueryParams
impl QueryParams
pub fn paper_id(&mut self, paper_id: &str) -> &mut Self
pub fn query_text(&mut self, query_text: &str) -> &mut Self
pub fn fields(&mut self, fields: Vec<PaperField>) -> &mut Self
pub fn publication_types( &mut self, publication_types: Vec<PublicationTypes>, ) -> &mut Self
pub fn open_access_pdf(&mut self, open_access_pdf: bool) -> &mut Self
pub fn min_citation_count(&mut self, min_citation_count: u32) -> &mut Self
pub fn publication_date_or_year( &mut self, publication_date_or_year: &str, ) -> &mut Self
pub fn year(&mut self, year: &str) -> &mut Self
pub fn venue(&mut self, venue: Vec<&str>) -> &mut Self
pub fn fields_of_study( &mut self, fields_of_study: Vec<FieldsOfStudy>, ) -> &mut Self
pub fn offset(&mut self, offset: u64) -> &mut Self
pub fn limit(&mut self, limit: u64) -> &mut Self
pub fn token(&mut self, token: &str) -> &mut Self
pub fn sort(&mut self, sort: &str) -> &mut Self
pub fn build(&self) -> String
Trait Implementations§
Source§impl Clone for QueryParams
impl Clone for QueryParams
Source§fn clone(&self) -> QueryParams
fn clone(&self) -> QueryParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QueryParams
impl Debug for QueryParams
Source§impl Default for QueryParams
impl Default for QueryParams
Source§fn default() -> QueryParams
fn default() -> QueryParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryParams
impl RefUnwindSafe for QueryParams
impl Send for QueryParams
impl Sync for QueryParams
impl Unpin for QueryParams
impl UnwindSafe for QueryParams
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