Struct samling::CategoriesRepo
source · 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 copy 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 more