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 more