Trait CrossrefQuery

Source
pub trait CrossrefQuery: CrossrefRoute + Clone {
    // Required method
    fn resource_component(self) -> ResourceComponent;

    // Provided method
    fn to_url(&self, base_path: &str) -> Result<String> { ... }
}
Expand description

root level trait to construct full crossref api request urls

Required Methods§

Source

fn resource_component(self) -> ResourceComponent

the resource component endpoint this route targets

Provided Methods§

Source

fn to_url(&self, base_path: &str) -> Result<String>

constructs the full request url by concating the base_path with the route

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§