pub struct Companies<'a> { /* private fields */ }Implementations§
Source§impl<'a> Companies<'a>
impl<'a> Companies<'a>
Sourcepub async fn list(
&self,
params: &CompanyListParams,
) -> Result<Response<PaginatedResponse<Company>>>
pub async fn list( &self, params: &CompanyListParams, ) -> Result<Response<PaginatedResponse<Company>>>
List companies with optional filtering and pagination.
Sourcepub async fn get(&self, uid: &str) -> Result<Response<Company>>
pub async fn get(&self, uid: &str) -> Result<Response<Company>>
Get a company by its Swiss UID (e.g. “CHE-100.023.968”).
Sourcepub async fn count(
&self,
params: &CompanyCountParams,
) -> Result<Response<CompanyCount>>
pub async fn count( &self, params: &CompanyCountParams, ) -> Result<Response<CompanyCount>>
Get the count of companies matching optional filters.
Sourcepub async fn statistics(&self) -> Result<Response<CompanyStatistics>>
pub async fn statistics(&self) -> Result<Response<CompanyStatistics>>
Get aggregate statistics about companies.
Sourcepub async fn search(
&self,
req: &CompanySearchRequest,
) -> Result<Response<Vec<Company>>>
pub async fn search( &self, req: &CompanySearchRequest, ) -> Result<Response<Vec<Company>>>
Full-text search companies (FTS5).
Auto Trait Implementations§
impl<'a> Freeze for Companies<'a>
impl<'a> !RefUnwindSafe for Companies<'a>
impl<'a> Send for Companies<'a>
impl<'a> Sync for Companies<'a>
impl<'a> Unpin for Companies<'a>
impl<'a> UnsafeUnpin for Companies<'a>
impl<'a> !UnwindSafe for Companies<'a>
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