[][src]Struct mini_redis::cmd::Get

pub struct Get { /* fields omitted */ }

Get the value of key.

If the key does not exist the special value nil is returned. An error is returned if the value stored at key is not a string, because GET only handles string values.

Implementations

impl Get[src]

pub fn new(key: impl ToString) -> Get[src]

Create a new Get command which fetches key.

pub fn key(&self) -> &str[src]

Get the key

Trait Implementations

impl Debug for Get[src]

Auto Trait Implementations

impl RefUnwindSafe for Get

impl Send for Get

impl Sync for Get

impl Unpin for Get

impl UnwindSafe for Get

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> Instrument for T[src]

impl<T> Instrument 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.

impl<T> WithSubscriber for T[src]