pub struct TopicResponse {
pub meta: Meta,
pub results: Vec<Topic>,
}Fields§
§meta: Meta§results: Vec<Topic>Trait Implementations§
Source§impl APIEntity<Topic, TopicResponse> for Topic
impl APIEntity<Topic, TopicResponse> for Topic
const API_URL: &'static str = "https://api.openalex.org/topics"
fn new(id: &str) -> Result<EntityType>
fn get_samples( number_of_samples: u32, seed: impl Into<String>, ) -> Result<ResponseType>
fn filter( filter: Filter, page: u32, per_page: u32, sort: Sort, ) -> Result<ResponseType>
fn search( search: impl Into<String>, page: u32, per_page: u32, sort: Sort, ) -> Result<ResponseType>
Source§impl Debug for TopicResponse
impl Debug for TopicResponse
Source§impl<'de> Deserialize<'de> for TopicResponse
impl<'de> Deserialize<'de> for TopicResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TopicResponse
impl Serialize for TopicResponse
Auto Trait Implementations§
impl Freeze for TopicResponse
impl RefUnwindSafe for TopicResponse
impl Send for TopicResponse
impl Sync for TopicResponse
impl Unpin for TopicResponse
impl UnwindSafe for TopicResponse
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