pub struct FindWorksResponse {
pub meta: Option<Value>,
pub results: Vec<FindWorksResult>,
}Expand description
Response from the /find/works semantic search endpoint.
Returns works ranked by AI similarity score (0-1). Requires an API key.
§Example
{
"results": [
{"score": 0.92, "id": "https://openalex.org/W...", "display_name": "Machine Learning for Drug Discovery", ...},
{"score": 0.87, "id": "https://openalex.org/W...", "display_name": "Deep Learning in Drug Design", ...}
]
}Fields§
§meta: Option<Value>Optional metadata (structure varies).
results: Vec<FindWorksResult>Works ranked by similarity score. Each result contains a score field
and the remaining Work fields flattened into work.
Trait Implementations§
Source§impl Clone for FindWorksResponse
impl Clone for FindWorksResponse
Source§fn clone(&self) -> FindWorksResponse
fn clone(&self) -> FindWorksResponse
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 moreSource§impl Debug for FindWorksResponse
impl Debug for FindWorksResponse
Source§impl<'de> Deserialize<'de> for FindWorksResponse
impl<'de> Deserialize<'de> for FindWorksResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FindWorksResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FindWorksResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for FindWorksResponse
impl Serialize for FindWorksResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for FindWorksResponse
impl RefUnwindSafe for FindWorksResponse
impl Send for FindWorksResponse
impl Sync for FindWorksResponse
impl Unpin for FindWorksResponse
impl UnsafeUnpin for FindWorksResponse
impl UnwindSafe for FindWorksResponse
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