pub struct KeysClient { /* private fields */ }
Implementations§
Source§impl KeysClient
impl KeysClient
pub fn new<S: AsRef<str>>(server_url: S, api_key: ApiKey) -> Self
pub async fn get_value<K: AsRef<str>>( &self, key: K, ) -> Result<KeyValue, Box<dyn Error>>
pub async fn set_value<K: AsRef<str>, V: AsRef<str>>( &self, key: K, value: V, ) -> Result<KeyValue, Box<dyn Error>>
pub async fn delete_value<K: AsRef<str>>( &self, key: K, ) -> Result<KeyValue, Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeysClient
impl !RefUnwindSafe for KeysClient
impl Send for KeysClient
impl Sync for KeysClient
impl Unpin for KeysClient
impl !UnwindSafe for KeysClient
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