[][src]Struct treehouse::Store

pub struct Store<T> { /* fields omitted */ }

Implementations

impl<T: Queryable + Serialize + DeserializeOwned> Store<T>[src]

pub fn transaction<A, F>(&self, f: F) -> TransactionResult<A, Error> where
    F: Fn(&TransactionalStore<T>) -> ConflictableTransactionResult<A, Error>, 
[src]

pub fn new(&self, inner: T) -> Result<Object<T>>[src]

pub fn create(&self, inner: &T) -> Result<u64>[src]

pub fn create_multi(&self, inners: &[T]) -> Result<Vec<u64>>[src]

pub fn update(&self, object: &Object<T>) -> Result<()>[src]

pub fn update_multi(&self, objects: &[Object<T>]) -> Result<()>[src]

pub fn delete(&self, id: u64) -> Result<()>[src]

pub fn delete_multi(&self, ids: &[u64]) -> Result<()>[src]

pub fn all(&self) -> Result<Vec<Object<T>>>[src]

pub fn find(&self, id: u64) -> Result<Option<Object<T>>>[src]

pub fn filter<Q: Query>(&self, query: Q) -> Result<Results<T>>[src]

pub fn delete_all(&self) -> Result<()>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for Store<T>

impl<T> Send for Store<T>

impl<T> Sync for Store<T>

impl<T> Unpin for Store<T>

impl<T> !UnwindSafe for Store<T>

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.