//! > CiteAs is a way to get the correct citation for diverse research products including, software, datasets, preprints, and traditional articles. By making it easier to cite software and other "alternative" scholarly products, we aim to help the creators of such products get full credit for their work.
//!
//! See <https://citeas.org/api> for more information
/// Helper trait for converting parameter collections into HTTP request body
pubtraitIntoBody{
/// Convert this value into a `serde_json::Value` for request body, using only body-style parameters.
@@ -90,6 +85,23 @@ pub trait RemoteResource {
where
R:for<'de>Deserialize<'de>;
}
/// Helper trait for searching lists of named API elements
pubtraitSearchable<T>{
/// Check if a certain value is present in the list
/// ### Note
/// This method will differ greatly on the implementation and type of T
fncontains(&self,_value:&str)->bool{
false
}
/// Filter list by ISO or ISO3 and return the first match
///### Note
/// This method is specific to the `Country` type in the GeoNames API, but is included in the trait for convenience and consistency with `find_by_name`