pub struct XClient { /* private fields */ }
Expand description
X API client
Implementations§
Source§impl XClient
impl XClient
Sourcepub async fn get_user_by_username(
&self,
username: &str,
) -> XResult<Option<User>>
pub async fn get_user_by_username( &self, username: &str, ) -> XResult<Option<User>>
Get user information by username
Sourcepub async fn get_user_by_id(&self, user_id: &str) -> XResult<Option<User>>
pub async fn get_user_by_id(&self, user_id: &str) -> XResult<Option<User>>
Get user information by user ID
Sourcepub async fn search_tweets(
&self,
params: SearchTweetsParams,
) -> XResult<Vec<Tweet>>
pub async fn search_tweets( &self, params: SearchTweetsParams, ) -> XResult<Vec<Tweet>>
Search for tweets
Trait Implementations§
Auto Trait Implementations§
impl Freeze for XClient
impl !RefUnwindSafe for XClient
impl Send for XClient
impl Sync for XClient
impl Unpin for XClient
impl !UnwindSafe for XClient
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