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_id(&mut self, query_text: String) -> String
pub async fn query_paper_details( &mut self, paper_id: String, fields: Vec<SsField>, ) -> SsResponse
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