pub struct ReviewService { /* private fields */ }Implementations§
Source§impl ReviewService
impl ReviewService
pub fn new(store: Store) -> Self
pub async fn create_review(&self, name: &str) -> Result<ReviewSession>
pub async fn load_review(&self, name: &str) -> Result<ReviewSession>
pub async fn load_or_create_review(&self, name: &str) -> Result<ReviewSession>
pub async fn list_reviews(&self) -> Result<Vec<String>>
pub async fn load_config(&self) -> Result<AppConfig>
pub async fn save_config(&self, config: &AppConfig) -> Result<()>
pub fn review_log_path(&self, review_name: &str) -> Result<PathBuf>
pub async fn set_state( &self, name: &str, next: ReviewState, ) -> Result<ReviewSession>
pub async fn set_state_force( &self, name: &str, next: ReviewState, ) -> Result<ReviewSession>
pub async fn add_comment( &self, name: &str, input: AddCommentInput, ) -> Result<ReviewSession>
pub async fn add_reply( &self, name: &str, input: AddReplyInput, ) -> Result<ReviewSession>
pub async fn mark_addressed( &self, name: &str, comment_id: u64, actor: Author, ) -> Result<ReviewSession>
pub async fn mark_open( &self, name: &str, comment_id: u64, actor: Author, ) -> Result<ReviewSession>
pub async fn force_mark_addressed( &self, name: &str, comment_id: u64, ) -> Result<ReviewSession>
Trait Implementations§
Source§impl Clone for ReviewService
impl Clone for ReviewService
Source§fn clone(&self) -> ReviewService
fn clone(&self) -> ReviewService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReviewService
impl RefUnwindSafe for ReviewService
impl Send for ReviewService
impl Sync for ReviewService
impl Unpin for ReviewService
impl UnsafeUnpin for ReviewService
impl UnwindSafe for ReviewService
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more