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, ) -> 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 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 PriceListsRepo
impl RefUnwindSafe for PriceListsRepo
impl Send for PriceListsRepo
impl Sync for PriceListsRepo
impl Unpin for PriceListsRepo
impl UnwindSafe for PriceListsRepo
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