Struct samling::PriceListsRepo
source · pub struct PriceListsRepo;Implementations§
source§impl PriceListsRepo
impl PriceListsRepo
pub async fn list(
&self,
client: &impl GenericClient,
metadata: RequestMetaData
) -> Result<Vec<PriceList>>
pub async fn list_summaries(
&self,
client: &impl GenericClient,
metadata: RequestMetaData,
filters: &PriceListFilters
) -> Result<Vec<PriceListSummary>>
pub async fn find(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<PriceList>
) -> Result<Option<PriceList>>
pub async fn get(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<PriceList>
) -> Result<PriceList>
pub async fn insert(
&self,
client: &mut Object,
organization_id: Id<Organization>,
created_by: Id<User>,
pricelist: CreatePriceList
) -> Result<PriceList>
pub async fn update(
&self,
client: &mut Object,
organization_id: Id<Organization>,
ref_: &Ref<PriceList>,
pricelist: UpdatePriceList
) -> Result<PriceList>
pub async fn upsert(
&self,
client: &mut Object,
organization_id: Id<Organization>,
created_by: Id<User>,
ref_: &Ref<PriceList>,
pricelist: CreatePriceList
) -> Result<(bool, PriceList)>
pub async fn delete(
&self,
client: &impl GenericClient,
organization_id: Id<Organization>,
ref_: &Ref<PriceList>
) -> Result<()>
Trait Implementations§
source§impl Clone for PriceListsRepo
impl Clone for PriceListsRepo
source§fn clone(&self) -> PriceListsRepo
fn clone(&self) -> PriceListsRepo
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