pub struct FeedbackFactsRepository { /* private fields */ }Implementations§
Source§impl FeedbackFactsRepository
impl FeedbackFactsRepository
pub async fn begin_backfill( &self, owner: &UserId, job: &TaskId, source: &str, ) -> Result<BackfillProgress>
pub async fn backfill( &self, owner: &UserId, job: &TaskId, ) -> Result<BackfillProgress>
pub async fn append_backfill_page( &self, owner: &UserId, job: &TaskId, page: &BackfillPage, ) -> Result<BackfillProgress>
Source§impl FeedbackFactsRepository
impl FeedbackFactsRepository
pub async fn claim_deltas( &self, owner: &UserId, consumer: &str, worker: &AnalyticsWorkerId, claim: DeltaClaim, ) -> Result<Option<DeltaLease>>
pub async fn delta_batch( &self, owner: &UserId, lease: &DeltaLease, ) -> Result<Vec<FactDelta>>
pub async fn lock_delta_lease( tx: &mut Transaction<'_, Postgres>, owner: &UserId, lease: &DeltaLease, ) -> Result<()>
pub async fn complete_delta_batch( tx: &mut Transaction<'_, Postgres>, owner: &UserId, lease: &DeltaLease, ) -> Result<()>
Source§impl FeedbackFactsRepository
impl FeedbackFactsRepository
pub const fn new(pool: PgPool) -> Self
pub async fn submit( &self, owner: &UserId, change: &AnalyticsChange, ) -> Result<ChangeReceipt>
pub async fn submit_in( tx: &mut Transaction<'_, Postgres>, owner: &UserId, change: &AnalyticsChange, ) -> Result<ChangeReceipt>
pub async fn get_fact( &self, owner: &UserId, key: &AnalyticsFactKey, ) -> Result<Option<StoredFact>>
pub async fn list_facts( &self, owner: &UserId, after: Option<&AnalyticsFactKey>, limit: u32, ) -> Result<Vec<StoredFact>>
pub async fn change_status( &self, owner: &UserId, id: &AnalyticsChangeId, ) -> Result<Option<ChangeDiagnostic>>
Source§impl FeedbackFactsRepository
impl FeedbackFactsRepository
pub async fn reference_totals( &self, owner: &UserId, from: DateTime<Utc>, to: DateTime<Utc>, resource: Option<&ManagedResourceId>, ) -> Result<FactsTotals>
Trait Implementations§
Source§impl Clone for FeedbackFactsRepository
impl Clone for FeedbackFactsRepository
Source§fn clone(&self) -> FeedbackFactsRepository
fn clone(&self) -> FeedbackFactsRepository
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 FeedbackFactsRepository
impl !UnwindSafe for FeedbackFactsRepository
impl Freeze for FeedbackFactsRepository
impl Send for FeedbackFactsRepository
impl Sync for FeedbackFactsRepository
impl Unpin for FeedbackFactsRepository
impl UnsafeUnpin for FeedbackFactsRepository
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