[−][src]Struct lucid_client::LucidKVClient
Fields
http_client: Client
base_url: Url
Implementations
impl LucidKVClient
[src]
pub fn new(option_base_url: Option<String>) -> Self
[src]
Create a new basic Lucid KV Client
pub async fn store_data<'_, T>(
&'_ self,
key: String,
data: T
) -> Result<Response, Error> where
T: Serialize,
[src]
&'_ self,
key: String,
data: T
) -> Result<Response, Error> where
T: Serialize,
Stores data into Lucid DB Will panic if key is not URI safe
pub async fn get_data<'_>(&'_ self, key: String) -> Result<Response, Error>
[src]
Gets data from Lucid DB Will panic if key is not URI safe
pub async fn delete_data<'_>(&'_ self, key: String) -> Result<Response, Error>
[src]
Delete data from Lucid DB Will panic if key is not URI safe
pub async fn is_key_present<'_>(&'_ self, key: String) -> bool
[src]
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 !RefUnwindSafe for LucidKVClient
impl Send for LucidKVClient
impl Sync for LucidKVClient
impl Unpin for LucidKVClient
impl !UnwindSafe for LucidKVClient
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,