pub struct WorksIdentQuery {
pub id: String,
pub query: WorksQuery,
}Expand description
Target Works as secondary resource component
§Example
use crossref_client::{WorksIdentQuery, WorksQuery};
let combined = WorksIdentQuery::new("100000015", WorksQuery::new("ontologies"));
Is equal to create a WorksIdentQuery from a WorksQuery
use crossref_client::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
Auto Trait Implementations§
impl Freeze for WorksIdentQuery
impl RefUnwindSafe for WorksIdentQuery
impl Send for WorksIdentQuery
impl Sync for WorksIdentQuery
impl Unpin for WorksIdentQuery
impl UnsafeUnpin 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