[][src]Struct lucid_client::LucidKVClient

pub struct LucidKVClient {
    pub http_client: Client,
    pub base_url: Url,
    // some fields omitted
}

Fields

http_client: Clientbase_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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.