pub struct SemanticScholar {
pub api_key: String,
pub base_url: String,
pub endpoint: SsEndpoint,
pub query_text: String,
pub fields: Vec<SsField>,
}Fields§
§api_key: String§base_url: String§endpoint: SsEndpoint§query_text: String§fields: Vec<SsField>Implementations§
Source§impl SemanticScholar
impl SemanticScholar
pub fn new() -> Self
pub async fn query_paper_batch( &mut self, paper_ids: Vec<&str>, fields: Vec<SsField>, max_retry_count: &mut u64, wait_time: u64, ) -> Result<Vec<SsPaper>>
pub async fn query_paper_id( &mut self, query_text: String, max_retry_count: &mut u64, wait_time: u64, ) -> Result<(String, String)>
pub async fn query_paper_details( &mut self, paper_id: String, fields: Vec<SsField>, max_retry_count: &mut u64, wait_time: u64, ) -> Result<SsPaper>
pub async fn query_paper_citations( &mut self, paper_id: String, fields: Vec<SsField>, max_retry_count: &mut u64, wait_time: u64, ) -> Result<SsResponsePapers>
pub async fn query_paper_references( &mut self, paper_id: String, fields: Vec<SsField>, max_retry_count: &mut u64, wait_time: u64, ) -> Result<SsResponsePapers>
Trait Implementations§
Source§impl Clone for SemanticScholar
impl Clone for SemanticScholar
Source§fn clone(&self) -> SemanticScholar
fn clone(&self) -> SemanticScholar
Returns a copy 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 SemanticScholar
impl Debug for SemanticScholar
Source§impl Default for SemanticScholar
impl Default for SemanticScholar
Source§fn default() -> SemanticScholar
fn default() -> SemanticScholar
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SemanticScholar
impl RefUnwindSafe for SemanticScholar
impl Send for SemanticScholar
impl Sync for SemanticScholar
impl Unpin for SemanticScholar
impl UnwindSafe for SemanticScholar
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