Struct samling::PricesRepo
source · pub struct PricesRepo;Implementations§
source§impl PricesRepo
impl PricesRepo
pub async fn list( &self, client: &impl GenericClient, organization_id: Id<Organization> ) -> Result<Vec<Price>>
pub async fn find( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Price> ) -> Result<Option<Price>>
pub async fn get( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Price> ) -> Result<Price>
pub async fn insert( &self, client: &mut Object, organization_id: Id<Organization>, created_by: Id<User>, price: CreatePrice ) -> Result<Price>
pub async fn update( &self, client: &mut Object, organization_id: Id<Organization>, ref_: &Ref<Price>, price: UpdatePrice ) -> Result<Price>
pub async fn upsert( &self, client: &mut Object, organization_id: Id<Organization>, created_by: Id<User>, ref_: &Ref<Price>, price: CreatePrice ) -> Result<(bool, Price)>
pub async fn delete( &self, client: &impl GenericClient, organization_id: Id<Organization>, ref_: &Ref<Price> ) -> Result<()>
Trait Implementations§
source§impl Clone for PricesRepo
impl Clone for PricesRepo
source§fn clone(&self) -> PricesRepo
fn clone(&self) -> PricesRepo
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 moreAuto Trait Implementations§
impl RefUnwindSafe for PricesRepo
impl Send for PricesRepo
impl Sync for PricesRepo
impl Unpin for PricesRepo
impl UnwindSafe for PricesRepo
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