pub struct MerriamWebsterClient { /* private fields */ }Expand description
A client for the Merriam Webster API.
Implementations§
Source§impl MerriamWebsterClient
impl MerriamWebsterClient
Sourcepub async fn collegiate_definition(
&self,
word: String,
) -> Result<Vec<Entry>, MerriamWebsterError>
pub async fn collegiate_definition( &self, word: String, ) -> Result<Vec<Entry>, MerriamWebsterError>
Fetch a definition from the Merriam Webster API.
Sourcepub async fn top_words(
&self,
) -> Result<APIGetTopWordsJSONResponse, MerriamWebsterError>
pub async fn top_words( &self, ) -> Result<APIGetTopWordsJSONResponse, MerriamWebsterError>
Fetch the currently most-searched words from the Merriam Webster API.
Auto Trait Implementations§
impl Freeze for MerriamWebsterClient
impl !RefUnwindSafe for MerriamWebsterClient
impl Send for MerriamWebsterClient
impl Sync for MerriamWebsterClient
impl Unpin for MerriamWebsterClient
impl !UnwindSafe for MerriamWebsterClient
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