diff --git a/v-api/src/context.rs b/v-api/src/context.rs index 3ce61d1..7a72c0f 100644 --- a/v-api/src/context.rs +++ b/v-api/src/context.rs @@ -58,7 +58,7 @@ use crate::{ static UNLIMITED: i64 = 9999999; -pub trait Storage: +pub trait VApiStorage: ApiUserStore + ApiKeyStore + ApiUserProviderStore @@ -75,7 +75,7 @@ pub trait Storage: + 'static { } -impl Storage for T where +impl VApiStorage for T where T: ApiUserStore + ApiKeyStore + ApiUserProviderStore @@ -95,7 +95,7 @@ impl Storage for T where pub struct VContext { public_url: String, - storage: Arc, + storage: Arc, unauthenticated_caller: ApiCaller, registration_caller: ApiCaller, jwt: JwtContext, @@ -229,7 +229,7 @@ where { pub async fn new( public_url: String, - storage: Arc, + storage: Arc, jwt: JwtConfig, keys: Vec, ) -> Result { @@ -287,7 +287,7 @@ where } } - pub fn set_storage(&mut self, storage: Arc) { + pub fn set_storage(&mut self, storage: Arc) { self.storage = storage; } diff --git a/v-api/src/lib.rs b/v-api/src/lib.rs index 7a05518..62c8c10 100644 --- a/v-api/src/lib.rs +++ b/v-api/src/lib.rs @@ -17,7 +17,7 @@ pub mod permissions; mod secrets; mod util; -pub use context::{ApiContext, SecretContext, VContext}; +pub use context::{ApiContext, SecretContext, VContext, VApiStorage}; pub use util::response; type ApiCaller = Caller;