Skip to main content

HojinSearchQuery

Struct HojinSearchQuery 

Source
pub struct HojinSearchQuery {
Show 32 fields pub corporate_number: Option<String>, pub name: Option<String>, pub exist_flg: Option<bool>, pub corporate_type: Option<String>, pub prefecture: Option<String>, pub city: Option<String>, pub capital_stock_from: Option<u64>, pub capital_stock_to: Option<u64>, pub employee_number_from: Option<u64>, pub employee_number_to: Option<u64>, pub founded_year: Option<String>, pub net_sales_summary_of_business_results_from: Option<u64>, pub net_sales_summary_of_business_results_to: Option<u64>, pub total_assets_summary_of_business_results_from: Option<u64>, pub total_assets_summary_of_business_results_to: Option<u64>, pub average_continuous_service_years: Option<String>, pub average_age: Option<String>, pub month_average_predetermined_overtime_hours: Option<String>, pub female_workers_proportion: Option<String>, pub patent: Option<String>, pub procurement: Option<String>, pub procurement_amount_from: Option<u64>, pub procurement_amount_to: Option<u64>, pub subsidy: Option<String>, pub subsidy_amount_from: Option<u64>, pub subsidy_amount_to: Option<u64>, pub certification: Option<String>, pub ministry: Option<String>, pub source: Option<String>, pub page: Option<u32>, pub limit: Option<u32>, pub metadata_flg: Option<bool>,
}
Expand description

法人検索(GET /v2/hojin)の検索条件。

フィールドを直接設定するか、チェーン可能なメソッドで組み立てる。

use gbiz_info_api::HojinSearchQuery;

let query = HojinSearchQuery::new()
    .name("トヨタ自動車")
    .prefecture("23")
    .limit(10);

Fields§

§corporate_number: Option<String>

法人番号(完全一致)

§name: Option<String>

法人名(部分一致)

§exist_flg: Option<bool>

法人活動情報の有無

§corporate_type: Option<String>

法人種別(101 国の機関、201 地方公共団体、301 株式会社、302 有限会社、 303 合名会社、304 合資会社、305 合同会社、399 その他の設立登記法人、 401 外国会社等、499 その他)

§prefecture: Option<String>

所在地(都道府県)。全国地方公共団体コードの先頭2桁

§city: Option<String>

所在地(市区町村)。全国地方公共団体コードの3-5桁目

§capital_stock_from: Option<u64>

資本金(以上)

§capital_stock_to: Option<u64>

資本金(以下)

§employee_number_from: Option<u64>

従業員数(以上)

§employee_number_to: Option<u64>

従業員数(以下)

§founded_year: Option<String>

創業年・設立年。複数の場合はカンマ区切り

§net_sales_summary_of_business_results_from: Option<u64>

売上高(以上)

§net_sales_summary_of_business_results_to: Option<u64>

売上高(以下)

§total_assets_summary_of_business_results_from: Option<u64>

総資産額(以上)

§total_assets_summary_of_business_results_to: Option<u64>

総資産額(以下)

§average_continuous_service_years: Option<String>

平均継続勤務年数(A: ~5年、B: 6年~10年、C: 11年~20年、D: 21年~)

§average_age: Option<String>

従業員の平均年齢(A: ~30歳、B: 31歳~45歳、C: 46歳~60歳、D: 61歳~)

§month_average_predetermined_overtime_hours: Option<String>

月平均所定外労働時間(A: 20時間未満、B: 40時間未満、C: 40時間以上)

§female_workers_proportion: Option<String>

労働者に占める女性労働者の割合(A: ~20%、B: 21%~40%、C: 41%~60%、D: 61%~)

§patent: Option<String>

特許(商標)(部分一致)

§procurement: Option<String>

調達先(部分一致)

§procurement_amount_from: Option<u64>

調達額(以上)

§procurement_amount_to: Option<u64>

調達額(以下)

§subsidy: Option<String>

補助金名称(部分一致)

§subsidy_amount_from: Option<u64>

補助金額(以上)

§subsidy_amount_to: Option<u64>

補助金額(以下)

§certification: Option<String>

届出・認定・表彰名(部分一致)

§ministry: Option<String>

担当府省の内部コード。複数の場合はカンマ区切り

§source: Option<String>

出典元(1 調達、2 表彰、3 届出認定、4 補助金、5 特許、6 財務)。 複数の場合はカンマ区切り

§page: Option<u32>

検索結果のページ番号(下限値1、上限値10)

§limit: Option<u32>

検索結果の1ページあたりの件数(下限値0、上限値5000)

§metadata_flg: Option<bool>

メタデータ取得フラグ

Implementations§

Source§

impl HojinSearchQuery

Source

pub fn new() -> Self

空の検索条件を作成する。

Source

pub fn corporate_number(self, value: impl Into<String>) -> Self

法人番号(完全一致)を設定する。

Source

pub fn name(self, value: impl Into<String>) -> Self

法人名(部分一致)を設定する。

Source

pub fn exist_flg(self, value: bool) -> Self

法人活動情報の有無を設定する。

Source

pub fn corporate_type(self, value: impl Into<String>) -> Self

法人種別コードを設定する。

Source

pub fn prefecture(self, value: impl Into<String>) -> Self

所在地(都道府県コード)を設定する。

Source

pub fn city(self, value: impl Into<String>) -> Self

所在地(市区町村コード)を設定する。

Source

pub fn capital_stock(self, from: Option<u64>, to: Option<u64>) -> Self

資本金の範囲(以上・以下)を設定する。None は片側指定なし。

Source

pub fn employee_number(self, from: Option<u64>, to: Option<u64>) -> Self

従業員数の範囲(以上・以下)を設定する。None は片側指定なし。

Source

pub fn founded_year(self, value: impl Into<String>) -> Self

創業年・設立年を設定する(複数はカンマ区切り)。

Source

pub fn net_sales(self, from: Option<u64>, to: Option<u64>) -> Self

売上高の範囲(以上・以下)を設定する。None は片側指定なし。

Source

pub fn total_assets(self, from: Option<u64>, to: Option<u64>) -> Self

総資産額の範囲(以上・以下)を設定する。None は片側指定なし。

Source

pub fn average_continuous_service_years(self, value: impl Into<String>) -> Self

平均継続勤務年数の区分コード(AD)を設定する。

Source

pub fn average_age(self, value: impl Into<String>) -> Self

従業員の平均年齢の区分コード(AD)を設定する。

Source

pub fn month_average_predetermined_overtime_hours( self, value: impl Into<String>, ) -> Self

月平均所定外労働時間の区分コード(AC)を設定する。

Source

pub fn female_workers_proportion(self, value: impl Into<String>) -> Self

労働者に占める女性労働者の割合の区分コード(AD)を設定する。

Source

pub fn patent(self, value: impl Into<String>) -> Self

特許(商標)(部分一致)を設定する。

Source

pub fn procurement(self, value: impl Into<String>) -> Self

調達先(部分一致)を設定する。

Source

pub fn procurement_amount(self, from: Option<u64>, to: Option<u64>) -> Self

調達額の範囲(以上・以下)を設定する。None は片側指定なし。

Source

pub fn subsidy(self, value: impl Into<String>) -> Self

補助金名称(部分一致)を設定する。

Source

pub fn subsidy_amount(self, from: Option<u64>, to: Option<u64>) -> Self

補助金額の範囲(以上・以下)を設定する。None は片側指定なし。

Source

pub fn certification(self, value: impl Into<String>) -> Self

届出・認定・表彰名(部分一致)を設定する。

Source

pub fn ministry(self, value: impl Into<String>) -> Self

担当府省の内部コードを設定する(複数はカンマ区切り)。

Source

pub fn source(self, value: impl Into<String>) -> Self

出典元コードを設定する(複数はカンマ区切り)。

Source

pub fn page(self, value: u32) -> Self

検索結果のページ番号(1~10)を設定する。

Source

pub fn limit(self, value: u32) -> Self

検索結果の1ページあたりの件数(0~5000)を設定する。

Source

pub fn metadata_flg(self, value: bool) -> Self

メタデータ取得フラグを設定する。

Trait Implementations§

Source§

impl Clone for HojinSearchQuery

Source§

fn clone(&self) -> HojinSearchQuery

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for HojinSearchQuery

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for HojinSearchQuery

Source§

fn default() -> HojinSearchQuery

Returns the “default value” for a type. Read more
Source§

impl PartialEq for HojinSearchQuery

Source§

fn eq(&self, other: &HojinSearchQuery) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for HojinSearchQuery

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for HojinSearchQuery

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more