Struct CitationQuery
pub struct CitationQuery {
pub journal: String,
pub year: String,
pub volume: String,
pub first_page: String,
pub author_name: String,
pub key: String,
}Expand description
Input for a single citation match query
Used with the ECitMatch API to find PMIDs from citation information. Each field corresponds to a part of the citation string sent to the API.
§Example
use pubmed_parser::pubmed::CitationQuery;
let query = CitationQuery::new(
"proc natl acad sci u s a",
"1991",
"88",
"3248",
"mann bj",
"Art1",
);Fields§
§journal: StringJournal title abbreviation (e.g., “proc natl acad sci u s a”)
year: StringPublication year (e.g., “1991”)
volume: StringVolume number (e.g., “88”)
first_page: StringFirst page number (e.g., “3248”)
Author name (e.g., “mann bj”)
key: StringUser-defined key for identifying results (e.g., “Art1”)
Implementations§
Trait Implementations§
§impl Clone for CitationQuery
impl Clone for CitationQuery
§fn clone(&self) -> CitationQuery
fn clone(&self) -> CitationQuery
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 moreAuto Trait Implementations§
impl Freeze for CitationQuery
impl RefUnwindSafe for CitationQuery
impl Send for CitationQuery
impl Sync for CitationQuery
impl Unpin for CitationQuery
impl UnwindSafe for CitationQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more