refactor(gpodder): rename store trait
This commit is contained in:
parent
fc46c4874a
commit
7de4897364
7 changed files with 18 additions and 16 deletions
|
|
@ -22,7 +22,7 @@ impl From<User> for gpodder::User {
|
|||
}
|
||||
}
|
||||
|
||||
impl gpodder::AuthStore for SqliteRepository {
|
||||
impl gpodder::GpodderAuthStore for SqliteRepository {
|
||||
fn get_user(&self, username: &str) -> Result<Option<gpodder::models::User>, AuthErr> {
|
||||
Ok(users::table
|
||||
.select(User::as_select())
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ impl From<gpodder::DeviceType> for DeviceType {
|
|||
}
|
||||
}
|
||||
|
||||
impl gpodder::DeviceRepository for SqliteRepository {
|
||||
impl gpodder::GpodderDeviceStore for SqliteRepository {
|
||||
fn devices_for_user(
|
||||
&self,
|
||||
user: &gpodder::User,
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ fn to_gpodder_action(
|
|||
}
|
||||
}
|
||||
|
||||
impl gpodder::EpisodeActionRepository for SqliteRepository {
|
||||
impl gpodder::GpodderEpisodeActionStore for SqliteRepository {
|
||||
fn add_episode_actions(
|
||||
&self,
|
||||
user: &gpodder::User,
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ pub fn update_subscriptions_for_single_device(
|
|||
Ok(())
|
||||
}
|
||||
|
||||
impl gpodder::SubscriptionRepository for SqliteRepository {
|
||||
impl gpodder::GpodderSubscriptionStore for SqliteRepository {
|
||||
fn subscriptions_for_user(
|
||||
&self,
|
||||
user: &gpodder::User,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue