pub struct FeedbackService { /* private fields */ }Implementations§
Source§impl FeedbackService
impl FeedbackService
pub fn new( store: FeedbackStoreService, objects: ObjectStoreService, notifications: NotificationService, audit: AuditService, events: EventServices, transcription: Option<TranscriptionService>, config: FeedbackConfig, ) -> Result<Self, FeedbackServiceError>
pub fn config(&self) -> &FeedbackConfig
pub async fn ready(&self) -> Result<(), FeedbackServiceError>
pub async fn create( &self, input: CreateFeedbackInput, uploads: Vec<AttachmentUpload>, correlation_id: Uuid, ) -> Result<CreateFeedbackResult, FeedbackServiceError>
pub async fn get_for_client( &self, id: FeedbackId, token: &FeedbackAccessToken, ) -> Result<FeedbackThread, FeedbackServiceError>
pub async fn get_for_developer( &self, id: FeedbackId, ) -> Result<FeedbackThread, FeedbackServiceError>
pub async fn list( &self, filter: FeedbackListFilter, ) -> Result<Vec<FeedbackSummary>, FeedbackServiceError>
pub async fn reply_as_client( &self, id: FeedbackId, token: &FeedbackAccessToken, body: impl Into<String>, correlation_id: Uuid, ) -> Result<FeedbackMutationResult, FeedbackServiceError>
pub async fn reply_as_developer( &self, id: FeedbackId, input: DeveloperReplyInput, actor_subject: String, correlation_id: Uuid, ) -> Result<FeedbackMutationResult, FeedbackServiceError>
pub async fn transition( &self, id: FeedbackId, input: TransitionFeedbackInput, actor_subject: String, correlation_id: Uuid, ) -> Result<FeedbackMutationResult, FeedbackServiceError>
pub async fn transcribe( &self, audio: AudioInput, ) -> Result<Transcript, FeedbackServiceError>
pub async fn ai_context( &self, id: FeedbackId, ) -> Result<FeedbackAiContext, FeedbackServiceError>
pub async fn attachment_for_developer( &self, id: FeedbackId, attachment_id: Uuid, ) -> Result<StoredObject, FeedbackServiceError>
pub async fn attachment_for_client( &self, id: FeedbackId, token: &FeedbackAccessToken, attachment_id: Uuid, ) -> Result<StoredObject, FeedbackServiceError>
Trait Implementations§
Source§impl Clone for FeedbackService
impl Clone for FeedbackService
Source§fn clone(&self) -> FeedbackService
fn clone(&self) -> FeedbackService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for FeedbackService
impl !UnwindSafe for FeedbackService
impl Freeze for FeedbackService
impl Send for FeedbackService
impl Sync for FeedbackService
impl Unpin for FeedbackService
impl UnsafeUnpin for FeedbackService
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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