Struct pliantdb::local::core::connection::View[][src]

pub struct View<'a, Cn, V> where
    V: View
{ pub key: Option<QueryKey<<V as View>::MapKey>>, // some fields omitted }

Parameters to query a schema::View.

Fields

key: Option<QueryKey<<V as View>::MapKey>>

Key filtering criteria.

Implementations

impl<'a, Cn, V> View<'a, Cn, V> where
    V: View,
    Cn: Connection<'a>, 
[src]

#[must_use]pub fn with_key(self, key: <V as View>::MapKey) -> View<'a, Cn, V>[src]

Filters for entries in the view with key.

#[must_use]pub fn with_keys(
    self,
    keys: Vec<<V as View>::MapKey, Global>
) -> View<'a, Cn, V>
[src]

Filters for entries in the view with keys.

#[must_use]pub fn with_key_range(
    self,
    range: Range<<V as View>::MapKey>
) -> View<'a, Cn, V>
[src]

Filters for entries in the view with keys.

pub async fn query(self) -> Result<Vec<Serialized, Global>, Error>[src]

Executes the query and retrieves the results.

Auto Trait Implementations

impl<'a, Cn, V> RefUnwindSafe for View<'a, Cn, V> where
    Cn: RefUnwindSafe,
    <V as View>::MapKey: RefUnwindSafe

impl<'a, Cn, V> Send for View<'a, Cn, V> where
    Cn: Sync

impl<'a, Cn, V> Sync for View<'a, Cn, V> where
    Cn: Sync

impl<'a, Cn, V> Unpin for View<'a, Cn, V> where
    <V as View>::MapKey: Unpin

impl<'a, Cn, V> UnwindSafe for View<'a, Cn, V> where
    Cn: RefUnwindSafe,
    <V as View>::MapKey: UnwindSafe

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.