[][src]Struct hotpot_db::Collection

pub struct Collection {
    pub name: String,
}

Fields

name: String

Methods

impl Collection[src]

pub fn add_object(
    &self,
    conn: &Connection,
    cname: &str,
    value: String
) -> Result<()>
[src]

pub fn add_index(
    &self,
    conn: &Connection,
    collection_name: &str,
    key: &str,
    index_name: &str
) -> Result<()>
[src]

pub fn query_arrays_contains<T: Display>(
    &self,
    conn: &Connection,
    cname: &str,
    comparison: &str,
    value: &T
) -> Result<Vec<Entry>>
[src]

pub fn query_object_with_key_value<T: Display>(
    &self,
    conn: &Connection,
    cname: &str,
    comparison: &str,
    key: &str,
    value: &T
) -> Result<Vec<Entry>>
[src]

Trait Implementations

impl Clone for Collection[src]

impl Debug for Collection[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.