Struct pliantdb_core::connection::View [−][src]
Parameters to query a schema::View
.
Fields
key: Option<QueryKey<V::MapKey>>
Key filtering criteria.
Implementations
impl<'a, Cn, V> View<'a, Cn, V> where
V: View,
Cn: Connection<'a>,
[src]
V: View,
Cn: Connection<'a>,
#[must_use]pub fn with_key(self, key: V::MapKey) -> Self
[src]
Filters for entries in the view with key
.
#[must_use]pub fn with_keys(self, keys: Vec<V::MapKey>) -> Self
[src]
Filters for entries in the view with keys
.
#[must_use]pub fn with_key_range(self, range: Range<V::MapKey>) -> Self
[src]
Filters for entries in the view with keys
.
pub async fn query(self) -> Result<Vec<Serialized>, 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,
Cn: RefUnwindSafe,
<V as View>::MapKey: RefUnwindSafe,
impl<'a, Cn, V> Send for View<'a, Cn, V> where
Cn: Sync,
Cn: Sync,
impl<'a, Cn, V> Sync for View<'a, Cn, V> where
Cn: Sync,
Cn: Sync,
impl<'a, Cn, V> Unpin for View<'a, Cn, V> where
<V as View>::MapKey: Unpin,
<V as View>::MapKey: Unpin,
impl<'a, Cn, V> UnwindSafe for View<'a, Cn, V> where
Cn: RefUnwindSafe,
<V as View>::MapKey: UnwindSafe,
Cn: RefUnwindSafe,
<V as View>::MapKey: UnwindSafe,
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,
pub 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> Same<T> for T
type Output = T
Should always be Self
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.
pub 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>,