pub struct InMemoryStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Default for InMemoryStorage
impl Default for InMemoryStorage
Source§impl Storage for InMemoryStorage
impl Storage for InMemoryStorage
fn create_key(&self, draft: NewGunmetalKey) -> Result<CreatedGunmetalKey>
fn list_keys(&self) -> Result<Vec<GunmetalKey>>
fn get_key(&self, id: Uuid) -> Result<Option<GunmetalKey>>
fn authenticate_key(&self, secret: &str) -> Result<Option<GunmetalKey>>
fn set_key_state(&self, id: Uuid, state: KeyState) -> Result<()>
fn delete_key(&self, id: Uuid) -> Result<()>
fn create_profile(&self, draft: NewProviderProfile) -> Result<ProviderProfile>
fn delete_profile(&self, id: Uuid) -> Result<()>
fn list_profiles(&self) -> Result<Vec<ProviderProfile>>
fn get_profile(&self, id: Uuid) -> Result<Option<ProviderProfile>>
fn update_profile_credentials( &self, id: Uuid, credentials: Option<Value>, ) -> Result<()>
fn replace_models_for_profile( &self, provider: &ProviderKind, _profile_id: Option<Uuid>, models: &[ModelDescriptor], ) -> Result<()>
fn list_models(&self) -> Result<Vec<ModelDescriptor>>
fn get_model(&self, id: &str) -> Result<Option<ModelDescriptor>>
fn log_request(&self, entry: NewRequestLogEntry) -> Result<RequestLogEntry>
fn list_request_logs(&self, limit: usize) -> Result<Vec<RequestLogEntry>>
Auto Trait Implementations§
impl !Freeze for InMemoryStorage
impl RefUnwindSafe for InMemoryStorage
impl Send for InMemoryStorage
impl Sync for InMemoryStorage
impl Unpin for InMemoryStorage
impl UnsafeUnpin for InMemoryStorage
impl UnwindSafe for InMemoryStorage
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