[−][src]Struct treehouse::Store
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]
F: Fn(&TransactionalStore<T>) -> ConflictableTransactionResult<A, Error>,
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]
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,
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, 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.
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>,