Store

Trait Store 

Source
pub trait Store<StorageConnection> {
    type Output;

    // Required method
    fn store(
        &self,
        into: &StorageConnection,
    ) -> Result<Self::Output, StorageError>;
}
Expand description

Inserts a model to the underlying data store, erroring if it already exists

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

Source§

impl<T, C> Store<DbConnection<C>> for Vec<T>
where T: Store<DbConnection<C>>,

Source§

type Output = ()

Source§

fn store(&self, into: &DbConnection<C>) -> Result<Self::Output, StorageError>

Implementors§

Source§

impl<C> Store<C> for StoredConsentRecord
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredGroup
where C: ConnectionExt,

Source§

impl<C> Store<C> for NewGroupIntent
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredGroupMessage
where C: ConnectionExt,

Source§

impl<C> Store<C> for Icebox
where C: ConnectionExt,

Source§

impl<C> Store<C> for IceboxDependency
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredIdentity
where C: ConnectionExt,

Source§

impl<C> Store<C> for IdentityCache
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredIdentityUpdate
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredKeyStoreEntry
where C: ConnectionExt,

Source§

impl<C> Store<C> for NewLocalCommitLog
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredMessageDeletion
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredProcessedDeviceSyncMessages
where C: ConnectionExt,

Source§

impl<C> Store<C> for ReaddStatus
where C: ConnectionExt,

Source§

impl<C> Store<C> for NewRemoteCommitLog
where C: ConnectionExt,

Source§

impl<C> Store<C> for RemoteCommitLog
where C: ConnectionExt,

Source§

impl<C> Store<C> for StoredUserPreferences
where C: ConnectionExt,