pub struct SqliteCompanyRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqliteCompanyRepository
impl SqliteCompanyRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl CompanyRepository for SqliteCompanyRepository
impl CompanyRepository for SqliteCompanyRepository
Source§fn update(&self, id: CompanyId, input: UpdateCompany) -> Result<Company>
fn update(&self, id: CompanyId, input: UpdateCompany) -> Result<Company>
Update a company (partial).
Source§fn list_addresses(&self, id: CompanyId) -> Result<Vec<CompanyShippingAddress>>
fn list_addresses(&self, id: CompanyId) -> Result<Vec<CompanyShippingAddress>>
List the company’s shipping addresses.
Source§fn list_price_overrides(
&self,
id: CompanyId,
) -> Result<Vec<CompanyPriceOverride>>
fn list_price_overrides( &self, id: CompanyId, ) -> Result<Vec<CompanyPriceOverride>>
List the company’s product price overrides.
Source§fn create_contact(&self, input: CreateContact) -> Result<Contact>
fn create_contact(&self, input: CreateContact) -> Result<Contact>
Create a contact, linking it to one or more companies.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteCompanyRepository
impl !UnwindSafe for SqliteCompanyRepository
impl Freeze for SqliteCompanyRepository
impl Send for SqliteCompanyRepository
impl Sync for SqliteCompanyRepository
impl Unpin for SqliteCompanyRepository
impl UnsafeUnpin for SqliteCompanyRepository
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