pub struct TicketingStoreService(pub Arc<dyn TicketingStore>);Tuple Fields§
§0: Arc<dyn TicketingStore>Implementations§
Source§impl TicketingStoreService
impl TicketingStoreService
pub fn new(store: Arc<dyn TicketingStore>) -> Self
pub async fn create( &self, ticket: Ticket, intent: TicketActivityIntent, ) -> Result<(), TicketStoreError>
pub async fn get( &self, project_id: &str, id: TicketId, ) -> Result<Option<Ticket>, TicketStoreError>
pub async fn list( &self, filter: TicketListFilter, ) -> Result<Vec<Ticket>, TicketStoreError>
pub async fn save( &self, ticket: Ticket, expected_revision: u64, intent: TicketActivityIntent, ) -> Result<(), TicketStoreError>
pub async fn insert_handoff( &self, handoff: SupportHandoff, ) -> Result<(), TicketStoreError>
pub async fn consume_and_create_ticket( &self, request: ConsumeHandoffRequest, ) -> Result<ConsumedHandoff, TicketStoreError>
pub async fn ingest_external_message( &self, request: IngestExternalMessageRequest, ) -> Result<ExternalMessageIngestResult, TicketStoreError>
pub async fn ready(&self) -> Result<(), TicketStoreError>
Trait Implementations§
Source§impl Clone for TicketingStoreService
impl Clone for TicketingStoreService
Auto Trait Implementations§
impl !RefUnwindSafe for TicketingStoreService
impl !UnwindSafe for TicketingStoreService
impl Freeze for TicketingStoreService
impl Send for TicketingStoreService
impl Sync for TicketingStoreService
impl Unpin for TicketingStoreService
impl UnsafeUnpin for TicketingStoreService
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