pub struct DatamuseClient { /* private fields */ }
Expand description
This struct represents the client which can be used to make requests to the Datamuse api. Requests can be created using the new_query() method
Implementations§
Source§impl DatamuseClient
impl DatamuseClient
Sourcepub fn new_query<'a>(
&'a self,
vocabulary: Vocabulary,
endpoint: EndPoint,
) -> RequestBuilder<'a>
pub fn new_query<'a>( &'a self, vocabulary: Vocabulary, endpoint: EndPoint, ) -> RequestBuilder<'a>
Returns a new RequestBuilder struct with which requests can be created and later sent. As parameters the vocabulary set and endpoint of the request are required. See their individual documentations for more information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DatamuseClient
impl !RefUnwindSafe for DatamuseClient
impl Send for DatamuseClient
impl Sync for DatamuseClient
impl Unpin for DatamuseClient
impl !UnwindSafe for DatamuseClient
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