pub struct BookmarkCommand;Expand description
Bookmark command handler
Implementations§
Source§impl BookmarkCommand
impl BookmarkCommand
Sourcepub fn add(&self, args: BookmarkArgs) -> Result<BookmarkResult>
pub fn add(&self, args: BookmarkArgs) -> Result<BookmarkResult>
Add a tweet to bookmarks In real implementation, calls POST /2/users/{id}/bookmarks
Sourcepub fn remove(&self, args: BookmarkArgs) -> Result<BookmarkResult>
pub fn remove(&self, args: BookmarkArgs) -> Result<BookmarkResult>
Remove a tweet from bookmarks In real implementation, calls DELETE /2/users/{id}/bookmarks/{tweet_id}
Sourcepub fn list(&self, args: BookmarkListArgs) -> Result<BookmarkListResult>
pub fn list(&self, args: BookmarkListArgs) -> Result<BookmarkListResult>
List bookmarked tweets with pagination In real implementation, calls GET /2/users/{id}/bookmarks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BookmarkCommand
impl RefUnwindSafe for BookmarkCommand
impl Send for BookmarkCommand
impl Sync for BookmarkCommand
impl Unpin for BookmarkCommand
impl UnsafeUnpin for BookmarkCommand
impl UnwindSafe for BookmarkCommand
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