pub struct PostgresConfigBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ConfigBackend for PostgresConfigBackend
impl ConfigBackend for PostgresConfigBackend
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 PostgresConfigBackend
impl !UnwindSafe for PostgresConfigBackend
impl Freeze for PostgresConfigBackend
impl Send for PostgresConfigBackend
impl Sync for PostgresConfigBackend
impl Unpin for PostgresConfigBackend
impl UnsafeUnpin for PostgresConfigBackend
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> 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