pub struct LucidKVClient {
pub http_client: Client,
pub base_url: Url,
/* private fields */
}
Fields§
§http_client: Client
§base_url: Url
Implementations§
Source§impl LucidKVClient
impl LucidKVClient
Sourcepub async fn store_data<T>(
&self,
key: String,
data: T,
) -> Result<Response, Error>where
T: Serialize,
pub async fn store_data<T>(
&self,
key: String,
data: T,
) -> Result<Response, Error>where
T: Serialize,
Stores data into Lucid DB Will panic if key is not URI safe
Sourcepub async fn get_data(&self, key: String) -> Result<Response, Error>
pub async fn get_data(&self, key: String) -> Result<Response, Error>
Gets data from Lucid DB Will panic if key is not URI safe
Sourcepub async fn delete_data(&self, key: String) -> Result<Response, Error>
pub async fn delete_data(&self, key: String) -> Result<Response, Error>
Delete data from Lucid DB Will panic if key is not URI safe
Sourcepub async fn is_key_present(&self, key: String) -> bool
pub async fn is_key_present(&self, key: String) -> bool
Sends HEAD request to Lucid DB, will return true if key is present Will panic if key is not URI safe
Auto Trait Implementations§
impl Freeze for LucidKVClient
impl !RefUnwindSafe for LucidKVClient
impl Send for LucidKVClient
impl Sync for LucidKVClient
impl Unpin for LucidKVClient
impl !UnwindSafe for LucidKVClient
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