pub struct UpdateArticleUseCase { /* private fields */ }Expand description
Use Case: Update Article
Updates an existing article’s information.
Implementations§
Source§impl UpdateArticleUseCase
impl UpdateArticleUseCase
pub fn new(repository: Arc<dyn ArticleRepository>) -> Self
pub async fn execute( &self, article: PaywallArticle, request: UpdateArticleRequest, ) -> Result<UpdateArticleResponse>
Auto Trait Implementations§
impl Freeze for UpdateArticleUseCase
impl !RefUnwindSafe for UpdateArticleUseCase
impl Send for UpdateArticleUseCase
impl Sync for UpdateArticleUseCase
impl Unpin for UpdateArticleUseCase
impl UnsafeUnpin for UpdateArticleUseCase
impl !UnwindSafe for UpdateArticleUseCase
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