pub struct SqliteConfigBackend { /* private fields */ }Implementations§
Source§impl SqliteConfigBackend
impl SqliteConfigBackend
pub fn new(pool: SqlitePool) -> Self
pub fn pool(&self) -> &SqlitePool
Trait Implementations§
Source§impl ConfigBackend for SqliteConfigBackend
impl ConfigBackend for SqliteConfigBackend
fn list_providers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DomainResult<Vec<ProviderConfig>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_provider<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<ProviderConfig>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ProviderConfig,
) -> Pin<Box<dyn Future<Output = DomainResult<i64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn update_provider<'life0, 'life1, 'async_trait>(
&'life0 self,
id: i64,
config: &'life1 ProviderConfig,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_provider<'life0, 'async_trait>(
&'life0 self,
id: i64,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_table_preferences<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: i64,
table_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn set_table_preferences<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
provider_id: i64,
table_id: &'life1 str,
preferences_json: &'life2 str,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn store_permissions<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_id: i64,
permissions: &'life1 StoredPermissions,
) -> Pin<Box<dyn Future<Output = DomainResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_permissions<'life0, 'async_trait>(
&'life0 self,
provider_id: i64,
) -> Pin<Box<dyn Future<Output = DomainResult<Option<StoredPermissions>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn export_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = DomainResult<ConfigExport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn import_all<'life0, 'life1, 'async_trait>(
&'life0 self,
data: &'life1 ConfigExport,
) -> Pin<Box<dyn Future<Output = DomainResult<HashMap<i64, i64>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteConfigBackend
impl !UnwindSafe for SqliteConfigBackend
impl Freeze for SqliteConfigBackend
impl Send for SqliteConfigBackend
impl Sync for SqliteConfigBackend
impl Unpin for SqliteConfigBackend
impl UnsafeUnpin for SqliteConfigBackend
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more