pub struct CategoriesRepo;Implementations§
Source§impl CategoriesRepo
impl CategoriesRepo
pub async fn list( &self, client: &impl GenericClient, organization_id: Id<Organization>, ) -> Result<Vec<Category>>
pub async fn get( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Category>, ) -> Result<Category>
pub async fn find( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Category>, ) -> Result<Option<Category>>
pub async fn insert( &self, client: &impl GenericClient, organization_id: Id<Organization>, created_by: Id<User>, category: CreateCategory, ) -> Result<Category>
pub async fn update( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Category>, category: UpdateCategory, ) -> Result<Category>
pub async fn upsert( &self, client: &impl GenericClient, organization_id: Id<Organization>, created_by: Id<User>, category_ref: &Ref<Category>, category: CreateCategory, ) -> Result<(bool, Category)>
pub async fn delete( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Category>, ) -> Result<()>
Trait Implementations§
Source§impl Clone for CategoriesRepo
impl Clone for CategoriesRepo
Source§fn clone(&self) -> CategoriesRepo
fn clone(&self) -> CategoriesRepo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CategoriesRepo
impl RefUnwindSafe for CategoriesRepo
impl Send for CategoriesRepo
impl Sync for CategoriesRepo
impl Unpin for CategoriesRepo
impl UnwindSafe for CategoriesRepo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more