pub struct TweetCommand { /* private fields */ }Expand description
Main tweets command handler.
Delegates to feature-specific modules for each operation while providing a unified entry point for the CLI.
Implementations§
Source§impl TweetCommand
impl TweetCommand
Sourcepub fn new(ledger: IdempotencyLedger) -> Self
pub fn new(ledger: IdempotencyLedger) -> Self
Create a new tweet command handler with a default stub API client
Sourcepub fn with_client(
ledger: IdempotencyLedger,
client: Box<dyn TweetApiClient>,
) -> Self
pub fn with_client( ledger: IdempotencyLedger, client: Box<dyn TweetApiClient>, ) -> Self
Create a new tweet command handler with a custom API client
Sourcepub fn create(&self, args: CreateArgs) -> Result<CreateResult>
pub fn create(&self, args: CreateArgs) -> Result<CreateResult>
Create a tweet with idempotency support
Sourcepub fn like(&self, args: EngagementArgs) -> Result<EngagementResult>
pub fn like(&self, args: EngagementArgs) -> Result<EngagementResult>
Like a tweet
Sourcepub fn unlike(&self, args: EngagementArgs) -> Result<EngagementResult>
pub fn unlike(&self, args: EngagementArgs) -> Result<EngagementResult>
Unlike a tweet
Sourcepub fn retweet(&self, args: EngagementArgs) -> Result<EngagementResult>
pub fn retweet(&self, args: EngagementArgs) -> Result<EngagementResult>
Retweet a tweet
Sourcepub fn unretweet(&self, args: EngagementArgs) -> Result<EngagementResult>
pub fn unretweet(&self, args: EngagementArgs) -> Result<EngagementResult>
Unretweet a tweet
Sourcepub fn list(&self, args: ListArgs) -> Result<ListResult>
pub fn list(&self, args: ListArgs) -> Result<ListResult>
List tweets with field projection and pagination
Sourcepub fn reply(&self, args: ReplyArgs) -> Result<ReplyResult>
pub fn reply(&self, args: ReplyArgs) -> Result<ReplyResult>
Reply to a tweet with idempotency support
Sourcepub fn thread(&self, args: ThreadArgs) -> Result<ThreadResult>
pub fn thread(&self, args: ThreadArgs) -> Result<ThreadResult>
Post a thread of tweets (sequential replies)
Sourcepub fn show(&self, args: ShowArgs) -> Result<ShowResult>
pub fn show(&self, args: ShowArgs) -> Result<ShowResult>
Show a single tweet by ID
Sourcepub fn conversation(&self, args: ConversationArgs) -> Result<ConversationResult>
pub fn conversation(&self, args: ConversationArgs) -> Result<ConversationResult>
Retrieve a conversation tree starting from a tweet
Auto Trait Implementations§
impl !Freeze for TweetCommand
impl !RefUnwindSafe for TweetCommand
impl Send for TweetCommand
impl !Sync for TweetCommand
impl Unpin for TweetCommand
impl UnsafeUnpin for TweetCommand
impl !UnwindSafe for TweetCommand
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