pub struct WorksIdentQuery {
pub id: String,
pub query: WorksQuery,
}Expand description
Target Works as secondary resource component
§Example
ⓘ
use crossref::{WorksIdentQuery, WorksQuery};
let combined = WorksIdentQuery::new("100000015", WorksQuery::new("ontologies"));
Is equal to create a WorksIdentQuery from a WorksQuery
ⓘ
use crossref::WorksQuery;
let combined = WorksQuery::new("ontologies").into_ident("100000015");
helper struct to capture an id for a Component other than /works and an additional query for the /works route
Fields§
§id: Stringthe id of an component item
query: WorksQuerythe query to filter the works results
Implementations§
Source§impl WorksIdentQuery
impl WorksIdentQuery
Sourcepub fn new<T: Into<String>>(id: T, query: WorksQuery) -> Self
pub fn new<T: Into<String>>(id: T, query: WorksQuery) -> Self
create a new Ident Query for the id
Trait Implementations§
Source§impl Clone for WorksIdentQuery
impl Clone for WorksIdentQuery
Source§fn clone(&self) -> WorksIdentQuery
fn clone(&self) -> WorksIdentQuery
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 WorksIdentQuery
impl RefUnwindSafe for WorksIdentQuery
impl Send for WorksIdentQuery
impl Sync for WorksIdentQuery
impl Unpin for WorksIdentQuery
impl UnwindSafe for WorksIdentQuery
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,
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