id
stringlengths
11
116
type
stringclasses
1 value
granularity
stringclasses
4 values
content
stringlengths
16
477k
metadata
dict
fn_clm_payment_methods_create_encrypted_data_7167308969424295553
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/controller pub async fn create_encrypted_data<T>( key_manager_state: &keymanager::KeyManagerState, key_store: &merchant_key_store::MerchantKeyStore, data: T, ) -> Result< crypto::Encryptable<Secret<serde_json::Va...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 124, "total_crates": null }
fn_clm_payment_methods_get_or_insert_payment_method_7167308969424295553
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/controller async fn get_or_insert_payment_method( &self, _req: api::PaymentMethodCreate, _resp: &mut api::PaymentMethodResponse, _customer_id: &id_type::CustomerId, _key_store: &merchant_k...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 9, "total_crates": null }
fn_clm_payment_methods_to_not_found_response_7274269728924300841
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/helpers // Implementation of error_stack::Result<T, storage_impl::StorageError> for StorageErrorExt<T, api_error_response::ApiErrorResponse> fn to_not_found_response( self, not_found_response: api_error_response:...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 1466, "total_crates": null }
fn_clm_payment_methods_foreign_from_7274269728924300841
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/helpers // Implementation of api::PaymentMethodResponse for ForeignFrom<(Option<api::CardDetailFromLocker>, domain::PaymentMethod)> fn foreign_from( (_card_details, _item): (Option<api::CardDetailFromLocker>, domain::Pay...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 212, "total_crates": null }
fn_clm_payment_methods_to_duplicate_response_7274269728924300841
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/helpers // Implementation of error_stack::Result<T, storage_impl::StorageError> for StorageErrorExt<T, api_error_response::ApiErrorResponse> fn to_duplicate_response( self, duplicate_response: api_error_response:...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 131, "total_crates": null }
fn_clm_payment_methods_validate_payment_method_type_against_payment_method_7274269728924300841
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/helpers pub fn validate_payment_method_type_against_payment_method( payment_method: api_enums::PaymentMethod, payment_method_type: api_enums::PaymentMethodType, ) -> bool { match payment_method { #[cfg(featur...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 16, "total_crates": null }
fn_clm_payment_methods_populate_bin_details_for_payment_method_create_7274269728924300841
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/helpers pub async fn populate_bin_details_for_payment_method_create( _card_details: api_models::payment_methods::CardDetail, _db: &dyn state::PaymentMethodsStorageInterface, ) -> api_models::payment_methods::CardDetail {...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 13, "total_crates": null }
fn_clm_payment_methods_from_4164553982633116986
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/state // Implementation of keymanager::KeyManagerState for From<&PaymentMethodsState> fn from(state: &PaymentMethodsState) -> Self { state.key_manager_state.clone() }
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2602, "total_crates": null }
fn_clm_payment_methods_find_payment_method_4164553982633116986
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/state // Inherent implementation for PaymentMethodsState pub async fn find_payment_method( &self, key_store: &merchant_key_store::MerchantKeyStore, merchant_account: &merchant_account::MerchantAccount, ...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 124, "total_crates": null }
fn_clm_payment_methods_new_-5194219524170717418
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration // Inherent implementation for RecordMigrationStatusBuilder pub fn new() -> Self { Self { card_migrated: None, network_token_migrated: None, connector_mandate_details_mi...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14463, "total_crates": null }
fn_clm_payment_methods_default_-5194219524170717418
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration // Implementation of RecordMigrationStatusBuilder for Default fn default() -> Self { Self::new() }
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7705, "total_crates": null }
fn_clm_payment_methods_build_-5194219524170717418
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration // Inherent implementation for RecordMigrationStatusBuilder pub fn build(self) -> RecordMigrationStatus { RecordMigrationStatus { card_migrated: self.card_migrated, network_token_mi...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 582, "total_crates": null }
fn_clm_payment_methods_validate_card_expiry_-5194219524170717418
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration pub fn validate_card_expiry( card_exp_month: &masking::Secret<String>, card_exp_year: &masking::Secret<String>, ) -> errors::CustomResult<(), errors::ApiErrorResponse> { let exp_month = card_exp_month ...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 53, "total_crates": null }
fn_clm_payment_methods_validate_and_get_payment_method_records_-5194219524170717418
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration // Implementation of None for PaymentMethodsMigrateForm pub fn validate_and_get_payment_method_records(self) -> MigrationValidationResult { // Step 1: Validate form-level conflicts let form_has_sin...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 48, "total_crates": null }
fn_clm_payment_methods_foreign_try_from_-4474373549320394179
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration/payment_methods // Implementation of pm_api::CardDetailFromLocker for ForeignTryFrom<( &api_models::payment_methods::MigrateCardDetail, Option<cards_info::CardInfo>, )> fn foreign_try_from( ...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 516, "total_crates": null }
fn_clm_payment_methods_get_client_secret_or_add_payment_method_for_migration_-4474373549320394179
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration/payment_methods pub async fn get_client_secret_or_add_payment_method_for_migration( state: &state::PaymentMethodsState, req: pm_api::PaymentMethodCreate, merchant_context: &merchant_context::MerchantCo...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 94, "total_crates": null }
fn_clm_payment_methods_save_migration_payment_method_-4474373549320394179
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration/payment_methods pub async fn save_migration_payment_method( req: pm_api::PaymentMethodCreate, migration_status: &mut migration::RecordMigrationStatusBuilder, controller: &dyn PaymentMethodsController, ...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 47, "total_crates": null }
fn_clm_payment_methods_populate_bin_details_for_masked_card_-4474373549320394179
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration/payment_methods pub async fn populate_bin_details_for_masked_card( card_details: &api_models::payment_methods::MigrateCardDetail, db: &dyn state::PaymentMethodsStorageInterface, payment_method_type: Op...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 42, "total_crates": null }
fn_clm_payment_methods_get_card_bin_and_last4_digits_for_masked_card_-4474373549320394179
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/core/migration/payment_methods pub fn get_card_bin_and_last4_digits_for_masked_card( masked_card_number: &str, ) -> Result<(String, String), cards::CardNumberValidationErr> { let last4_digits = masked_card_number ...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 36, "total_crates": null }
fn_clm_payment_methods_new_-4916677146550061978
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/payment_connector_required_fields // Inherent implementation for RequiredFields pub fn new(bank_config: &BankRedirectConfig) -> Self { let cards_required_fields = get_cards_required_fields(); let mut debi...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14561, "total_crates": null }
fn_clm_payment_methods_default_-4916677146550061978
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/payment_connector_required_fields // Implementation of RequiredFields for Default fn default() -> Self { Self::new(&BankRedirectConfig::default()) }
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7707, "total_crates": null }
fn_clm_payment_methods_to_tuple_-4916677146550061978
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/payment_connector_required_fields // Inherent implementation for RequiredField fn to_tuple(&self) -> (String, RequiredFieldInfo) { match self { Self::CardNumber => ( "payment_method_da...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 601, "total_crates": null }
fn_clm_payment_methods_get_cards_required_fields_-4916677146550061978
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/payment_connector_required_fields fn get_cards_required_fields() -> HashMap<Connector, RequiredFieldFinal> { HashMap::from([ (Connector::Aci, fields(vec![], vec![], card_with_name())), (Connector::Aut...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 379, "total_crates": null }
fn_clm_payment_methods_connectors_-4916677146550061978
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/payment_connector_required_fields fn connectors(connectors: Vec<(Connector, RequiredFieldFinal)>) -> ConnectorFields { ConnectorFields { fields: connectors.into_iter().collect(), } }
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 253, "total_crates": null }
fn_clm_payment_methods_convert_to_raw_secret_-3133009782312498959
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/settings // Implementation of PaymentMethodAuth for SecretsHandler async fn convert_to_raw_secret( value: SecretStateContainer<Self, SecuredSecret>, secret_management_client: &dyn SecretManagementInterfac...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 70, "total_crates": null }
fn_clm_payment_methods_deserialize_hashset_inner_-3133009782312498959
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/settings fn deserialize_hashset_inner<T>(value: impl AsRef<str>) -> Result<HashSet<T>, String> where T: Eq + std::str::FromStr + std::hash::Hash, <T as std::str::FromStr>::Err: std::fmt::Display, { let (value...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 59, "total_crates": null }
fn_clm_payment_methods_deserialize_hashset_-3133009782312498959
clm
function
// Repository: hyperswitch // Crate: payment_methods // Module: crates/payment_methods/src/configs/settings fn deserialize_hashset<'a, D, T>(deserializer: D) -> Result<HashSet<T>, D::Error> where D: serde::Deserializer<'a>, T: Eq + std::str::FromStr + std::hash::Hash, <T as std::str::FromStr>::Err: std::fm...
{ "crate": "payment_methods", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 6, "total_crates": null }
fn_clm_pm_auth_from_-5281437103833621350
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types // Implementation of api_models::pm_auth::ExchangeTokenCreateResponse for From<ExchangeTokenResponse> fn from(value: ExchangeTokenResponse) -> Self { Self { access_token: value.access_token, } }
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2600, "total_crates": null }
fn_clm_pm_auth_get_not_implemented_-5281437103833621350
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types // Inherent implementation for ErrorResponse fn get_not_implemented() -> Self { Self { code: "IR_00".to_string(), message: "This API is under development and will be made available soon.".to_string(), ...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_pm_auth_build_error_response_-8882305114178002994
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types/api fn build_error_response( &self, res: auth_types::Response, ) -> CustomResult<auth_types::ErrorResponse, ConnectorError> { Ok(auth_types::ErrorResponse { status_code: res.status_code, ...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 427, "total_crates": null }
fn_clm_pm_auth_get_url_-8882305114178002994
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types/api fn get_url( &self, _req: &super::PaymentAuthRouterData<T, Req, Resp>, _connectors: &auth_types::PaymentMethodAuthConnectors, ) -> CustomResult<String, ConnectorError> { Ok(String::new()) }
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 401, "total_crates": null }
fn_clm_pm_auth_get_headers_-8882305114178002994
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types/api fn get_headers( &self, _req: &super::PaymentAuthRouterData<T, Req, Resp>, _connectors: &auth_types::PaymentMethodAuthConnectors, ) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> { ...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 372, "total_crates": null }
fn_clm_pm_auth_common_get_content_type_-8882305114178002994
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types/api fn common_get_content_type(&self) -> &'static str { "application/json" }
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 369, "total_crates": null }
fn_clm_pm_auth_build_headers_-8882305114178002994
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/types/api fn build_headers( &self, _req: &auth_types::PaymentAuthRouterData<Flow, Req, Resp>, _connectors: &auth_types::PaymentMethodAuthConnectors, ) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> ...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 362, "total_crates": null }
fn_clm_pm_auth_build_error_response_-9192987628127507061
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid // Implementation of Plaid for ConnectorCommon fn build_error_response( &self, res: auth_types::Response, ) -> errors::CustomResult<auth_types::ErrorResponse, errors::ConnectorError> { let response: p...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 437, "total_crates": null }
fn_clm_pm_auth_get_url_-9192987628127507061
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid // Implementation of Plaid for ConnectorIntegration< RecipientCreate, auth_types::RecipientCreateRequest, auth_types::RecipientCreateResponse, > fn get_url( &self, _req: &auth_types::R...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 407, "total_crates": null }
fn_clm_pm_auth_get_headers_-9192987628127507061
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid // Implementation of Plaid for ConnectorIntegration< RecipientCreate, auth_types::RecipientCreateRequest, auth_types::RecipientCreateResponse, > fn get_headers( &self, req: &auth_types...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 382, "total_crates": null }
fn_clm_pm_auth_common_get_content_type_-9192987628127507061
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid // Implementation of Plaid for ConnectorCommon fn common_get_content_type(&self) -> &'static str { "application/json" }
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 377, "total_crates": null }
fn_clm_pm_auth_build_headers_-9192987628127507061
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid // Implementation of Plaid for ConnectorCommonExt<Flow, Request, Response> fn build_headers( &self, req: &auth_types::PaymentAuthRouterData<Flow, Request, Response>, _connectors: &auth_types::PaymentMetho...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 372, "total_crates": null }
fn_clm_pm_auth_try_from_-8680909621834439539
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid/transformers // Implementation of PlaidAuthType for TryFrom<&types::ConnectorAuthType> fn try_from(auth_type: &types::ConnectorAuthType) -> Result<Self, Self::Error> { match auth_type { types::ConnectorAuthTy...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2663, "total_crates": null }
fn_clm_pm_auth_from_-8680909621834439539
clm
function
// Repository: hyperswitch // Crate: pm_auth // Module: crates/pm_auth/src/connector/plaid/transformers // Implementation of types::PaymentAuthRouterData<F, T, types::RecipientCreateResponse> for From< types::ResponseRouterData< F, PlaidRecipientCreateResponse, T, ...
{ "crate": "pm_auth", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2600, "total_crates": null }
fn_clm_kgraph_utils_build_test_data_5186035463414702477
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/benches/evaluation fn build_test_data( total_enabled: usize, total_pm_types: usize, ) -> hyperswitch_constraint_graph::ConstraintGraph<dir::DirValue> { use api_models::{admin::*, payment_methods::*}; let mut pms_enabled: ...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 56, "total_crates": null }
fn_clm_kgraph_utils_evaluation_5186035463414702477
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/benches/evaluation fn evaluation(c: &mut Criterion) { let small_graph = build_test_data(3, 8); let big_graph = build_test_data(20, 20); c.bench_function("MCA Small Graph Evaluation", |b| { b.iter(|| { smal...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 28, "total_crates": null }
fn_clm_kgraph_utils_main_5186035463414702477
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/benches/evaluation fn main() {}
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 0, "total_crates": null }
fn_clm_kgraph_utils_into_context_1515945557120810312
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/transformers // Implementation of BackendInput for IntoContext fn into_context(self) -> Result<Vec<dir::DirValue>, KgraphError> { let mut ctx: Vec<dir::DirValue> = Vec::new(); ctx.push(dir::DirValue::PaymentAmount(Num...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 69, "total_crates": null }
fn_clm_kgraph_utils_into_dir_value_1515945557120810312
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/transformers // Implementation of api_enums::Currency for IntoDirValue fn into_dir_value(self) -> Result<dir::DirValue, KgraphError> { match self { Self::AED => Ok(dirval!(PaymentCurrency = AED)), Self:...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 35, "total_crates": null }
fn_clm_kgraph_utils_get_dir_country_dir_value_1515945557120810312
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/transformers pub fn get_dir_country_dir_value(c: api_enums::Country) -> dir::enums::Country { match c { api_enums::Country::Afghanistan => dir::enums::Country::Afghanistan, api_enums::Country::AlandIslands => dir::...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 16, "total_crates": null }
fn_clm_kgraph_utils_business_country_to_dir_value_1515945557120810312
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/transformers pub fn business_country_to_dir_value(c: api_enums::Country) -> dir::DirValue { dir::DirValue::BusinessCountry(get_dir_country_dir_value(c)) }
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14, "total_crates": null }
fn_clm_kgraph_utils_billing_country_to_dir_value_1515945557120810312
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/transformers pub fn billing_country_to_dir_value(c: api_enums::Country) -> dir::DirValue { dir::DirValue::BillingCountry(get_dir_country_dir_value(c)) }
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14, "total_crates": null }
fn_clm_kgraph_utils_compile_request_pm_types_4702994663785621093
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/mca fn compile_request_pm_types( builder: &mut cgraph::ConstraintGraphBuilder<dir::DirValue>, pm_types: RequestPaymentMethodTypes, pm: api_enums::PaymentMethod, ) -> Result<cgraph::NodeId, KgraphError> { let mut agg_no...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 105, "total_crates": null }
fn_clm_kgraph_utils_compile_config_graph_4702994663785621093
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/mca fn compile_config_graph( builder: &mut cgraph::ConstraintGraphBuilder<dir::DirValue>, config: &kgraph_types::CountryCurrencyFilter, connector: api_enums::RoutableConnectors, ) -> Result<cgraph::NodeId, KgraphError> { ...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 75, "total_crates": null }
fn_clm_kgraph_utils_build_test_data_4702994663785621093
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/mca fn build_test_data() -> ConstraintGraph<dir::DirValue> { use api_models::{admin::*, payment_methods::*}; let profile_id = common_utils::generate_profile_id_of_default_length(); // #[cfg(feature = "v2")] ...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 56, "total_crates": null }
fn_clm_kgraph_utils_compile_graph_for_countries_and_currencies_4702994663785621093
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/mca fn compile_graph_for_countries_and_currencies( builder: &mut cgraph::ConstraintGraphBuilder<dir::DirValue>, config: &kgraph_types::CurrencyCountryFlowFilter, payment_method_type_node: cgraph::NodeId, ) -> Result<cgraph...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 54, "total_crates": null }
fn_clm_kgraph_utils_global_vec_pmt_4702994663785621093
clm
function
// Repository: hyperswitch // Crate: kgraph_utils // Module: crates/kgraph_utils/src/mca fn global_vec_pmt( enabled_pmt: Vec<dir::DirValue>, builder: &mut cgraph::ConstraintGraphBuilder<dir::DirValue>, ) -> Vec<cgraph::NodeId> { let mut global_vector: Vec<dir::DirValue> = Vec::new(); global_vector.app...
{ "crate": "kgraph_utils", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 51, "total_crates": null }
fn_clm_external_services_main_-7571044527138769423
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/build fn main() -> Result<(), Box<dyn std::error::Error>> { // Compilation for revenue recovery protos #[cfg(feature = "revenue_recovery")] { let proto_base_path = router_env::workspace_path().join("proto"); ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 42, "total_crates": null }
fn_clm_external_services_new_5662202958435539230
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/superposition // Implementation of None for SuperpositionClient /// Create a new Superposition client pub async fn new(config: SuperpositionClientConfig) -> CustomResult<Self, SuperpositionError> { let provider_opt...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14481, "total_crates": null }
fn_clm_external_services_build_evaluation_context_5662202958435539230
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/superposition // Implementation of None for SuperpositionClient /// Build evaluation context for Superposition requests fn build_evaluation_context( &self, context: Option<&ConfigContext>, ) -> open_fea...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 39, "total_crates": null }
fn_clm_external_services_get_bool_value_5662202958435539230
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/superposition // Implementation of None for SuperpositionClient /// Get a boolean configuration value from Superposition pub async fn get_bool_value( &self, key: &str, context: Option<&ConfigContext...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 30, "total_crates": null }
fn_clm_external_services_get_string_value_5662202958435539230
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/superposition // Implementation of None for SuperpositionClient /// Get a string configuration value from Superposition pub async fn get_string_value( &self, key: &str, context: Option<&ConfigContex...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 30, "total_crates": null }
fn_clm_external_services_get_int_value_5662202958435539230
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/superposition // Implementation of None for SuperpositionClient /// Get an integer configuration value from Superposition pub async fn get_int_value( &self, key: &str, context: Option<&ConfigContext...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 30, "total_crates": null }
fn_clm_external_services_validate_-3449243625320966420
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/crm // Inherent implementation for CrmManagerConfig /// Verifies that the client configuration is usable pub fn validate(&self) -> Result<(), InvalidCrmConfig> { match self { Self::HubspotProxy { hubspo...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 221, "total_crates": null }
fn_clm_external_services_send_request_-3449243625320966420
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/crm // Implementation of HubspotProxyConfig for CrmInterface async fn send_request( &self, proxy: &Proxy, request: Request, ) -> CustomResult<reqwest::Response, HttpClientError> { http_cli...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 52, "total_crates": null }
fn_clm_external_services_fmt_-3449243625320966420
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/crm // Implementation of InvalidCrmConfig for std::fmt::Display fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { write!(f, "crm: {}", self.0) }
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 38, "total_crates": null }
fn_clm_external_services_make_body_-3449243625320966420
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/crm // Implementation of HubspotProxyConfig for CrmInterface async fn make_body(&self, details: CrmPayload) -> RequestContent { RequestContent::FormUrlEncoded(Box::new(HubspotRequest::new( details.busines...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 31, "total_crates": null }
fn_clm_external_services_get_crm_client_-3449243625320966420
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/crm // Inherent implementation for CrmManagerConfig /// Retrieves the appropriate Crm client based on the configuration. pub async fn get_crm_client(&self) -> Arc<dyn CrmInterface> { match self { Self::...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 27, "total_crates": null }
fn_clm_external_services_new_4342313197335234831
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/grpc_client // Implementation of None for LineageIds /// constructor for LineageIds pub fn new(merchant_id: id_type::MerchantId, profile_id: id_type::ProfileId) -> Self { Self { merchant_id, ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14463, "total_crates": null }
fn_clm_external_services_get_grpc_client_interface_4342313197335234831
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/grpc_client // Inherent implementation for GrpcClientSettings pub async fn get_grpc_client_interface(&self) -> Arc<GrpcClients> { #[cfg(any(feature = "dynamic_routing", feature = "revenue_recovery"))] let cli...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 57, "total_crates": null }
fn_clm_external_services_create_grpc_request_4342313197335234831
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/grpc_client pub(crate) fn create_grpc_request<T: Debug>(message: T, headers: GrpcHeaders) -> tonic::Request<T> { let mut request = tonic::Request::new(message); request.add_headers_to_grpc_request(headers); logg...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 44, "total_crates": null }
fn_clm_external_services_add_headers_to_grpc_request_4342313197335234831
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/grpc_client // Implementation of tonic::Request<T> for AddHeaders fn add_headers_to_grpc_request(&mut self, headers: GrpcHeaders) { headers.tenant_id .parse() .map(|tenant_id| { ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 37, "total_crates": null }
fn_clm_external_services_get_url_encoded_string_4342313197335234831
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/grpc_client // Implementation of None for LineageIds /// get url encoded string representation of LineageIds pub fn get_url_encoded_string(self) -> Result<String, serde_urlencoded::ser::Error> { serde_urlencoded::t...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 23, "total_crates": null }
fn_clm_external_services_convert_from_prost_timestamp_8869293675424895168
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/lib /// Converts a `prost_types::Timestamp` to an `time::PrimitiveDateTime`. pub fn convert_from_prost_timestamp( ts: &prost_types::Timestamp, ) -> error_stack::Result<time::PrimitiveDateTime, DateTimeConversio...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 29, "total_crates": null }
fn_clm_external_services_convert_to_prost_timestamp_8869293675424895168
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/lib /// Converts a `time::PrimitiveDateTime` to a `prost_types::Timestamp`. pub fn convert_to_prost_timestamp(dt: time::PrimitiveDateTime) -> prost_types::Timestamp { let odt = dt.assume_utc(); prost_types:...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 19, "total_crates": null }
fn_clm_external_services_send_request_9200395012896739240
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client pub async fn send_request( client_proxy: &Proxy, request: Request, option_timeout_secs: Option<u64>, ) -> CustomResult<reqwest::Response, HttpClientError> { logger::info!(method=?request.method, h...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 178, "total_crates": null }
fn_clm_external_services_onnection_closed_before_message_could_complete(err_9200395012896739240
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client s_connection_closed_before_message_could_complete(error: &reqwest::Error) -> bool { let mut source = error.source(); while let Some(err) = source { if let Some(hyper_err) = err.downcast_ref::<hype...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 6, "total_crates": null }
fn_clm_external_services_new_1994120314929746792
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/email // Inherent implementation for IntermediateString /// Create a new Instance of IntermediateString using a string pub fn new(inner: String) -> Self { Self(inner) }
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14465, "total_crates": null }
fn_clm_external_services_into_inner_1994120314929746792
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/email // Inherent implementation for IntermediateString /// Get the inner String pub fn into_inner(self) -> String { self.0 }
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2061, "total_crates": null }
fn_clm_external_services_validate_1994120314929746792
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/email // Implementation of None for EmailSettings /// Validation for the Email client specific configurations pub fn validate(&self) -> Result<(), &'static str> { match &self.client_config { EmailClient...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 223, "total_crates": null }
fn_clm_external_services_compose_and_send_email_1994120314929746792
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/email // Implementation of T for EmailService async fn compose_and_send_email( &self, base_url: &str, email_data: Box<dyn EmailData + Send>, proxy_url: Option<&String>, ) -> EmailResult<()...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 53, "total_crates": null }
fn_clm_external_services_validate_-2886972313220271858
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/file_storage // Inherent implementation for FileStorageConfig /// Validates the file storage configuration. pub fn validate(&self) -> Result<(), InvalidFileStorageConfig> { match self { #[cfg(feature = ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 221, "total_crates": null }
fn_clm_external_services_fmt_-2886972313220271858
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/file_storage // Implementation of InvalidFileStorageConfig for Display fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { write!(f, "file_storage: {}", self.0) }
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 38, "total_crates": null }
fn_clm_external_services_get_file_storage_client_-2886972313220271858
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/file_storage // Inherent implementation for FileStorageConfig /// Retrieves the appropriate file storage client based on the file storage configuration. pub async fn get_file_storage_client(&self) -> Arc<dyn FileStorageInt...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 30, "total_crates": null }
fn_clm_external_services_new_7735786032461823506
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hubspot_proxy // Inherent implementation for HubspotRequest pub fn new( country: String, hubspot_form_id: String, firstname: Secret<String>, email: Secret<String>, company_name: String...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14467, "total_crates": null }
fn_clm_external_services_deserialize_hashset_inner_2141032712598851232
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/utils /// Parses a comma-separated string into a HashSet of typed values. /// /// # Arguments /// /// * `value` - String or string reference containing comma-separated values /// /// # Returns /// /// * `Ok(HashSet<T...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 59, "total_crates": null }
fn_clm_external_services_deserialize_hashset_2141032712598851232
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/utils /// Serde deserializer function for converting comma-separated strings into typed HashSets. /// /// This function is designed to be used with serde's `#[serde(deserialize_with = "deserialize_hashset")]` /// attribut...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 16, "total_crates": null }
fn_clm_external_services_test_deserialize_hashset_inner_success_2141032712598851232
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/utils fn test_deserialize_hashset_inner_success() { let result: Result<HashSet<i32>, String> = deserialize_hashset_inner("1,2,3"); assert!(result.is_ok()); if let Ok(hashset) = result { a...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2, "total_crates": null }
fn_clm_external_services_test_deserialize_hashset_inner_with_whitespace_2141032712598851232
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/utils fn test_deserialize_hashset_inner_with_whitespace() { let result: Result<HashSet<String>, String> = deserialize_hashset_inner(" a , b , c "); assert!(result.is_ok()); if let Ok(hashset) = resul...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2, "total_crates": null }
fn_clm_external_services_test_deserialize_hashset_inner_empty_string_2141032712598851232
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/utils fn test_deserialize_hashset_inner_empty_string() { let result: Result<HashSet<String>, String> = deserialize_hashset_inner(""); assert!(result.is_ok()); if let Ok(hashset) = result { ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 2, "total_crates": null }
fn_clm_external_services_construct_header_map_-161641526686486311
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/request // Implementation of Headers for HeaderExt fn construct_header_map(self) -> CustomResult<reqwest::header::HeaderMap, HttpClientError> { use reqwest::header::{HeaderMap, HeaderName, HeaderValue}; ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 29, "total_crates": null }
fn_clm_external_services_add_headers_-161641526686486311
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/request // Implementation of reqwest::RequestBuilder for RequestBuilderExt fn add_headers(mut self, headers: reqwest::header::HeaderMap) -> Self { self = self.headers(headers); self }
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 13, "total_crates": null }
fn_clm_external_services_create_client_4818340175508895258
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/client pub fn create_client( proxy_config: &Proxy, client_certificate: Option<masking::Secret<String>>, client_certificate_key: Option<masking::Secret<String>>, ca_certificate: Option<masking::Sec...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 91, "total_crates": null }
fn_clm_external_services_get_client_builder_4818340175508895258
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/client pub fn get_client_builder( proxy_config: &Proxy, ) -> CustomResult<reqwest::ClientBuilder, HttpClientError> { let mut client_builder = reqwest::Client::builder() .redirect(reqwest::redirect...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 78, "total_crates": null }
fn_clm_external_services_create_identity_from_certificate_and_key_4818340175508895258
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/client pub fn create_identity_from_certificate_and_key( encoded_certificate: masking::Secret<String>, encoded_certificate_key: masking::Secret<String>, ) -> Result<reqwest::Identity, error_stack::Report<H...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 51, "total_crates": null }
fn_clm_external_services_create_certificate_4818340175508895258
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/client pub fn create_certificate( encoded_certificate: masking::Secret<String>, ) -> Result<Vec<reqwest::Certificate>, error_stack::Report<HttpClientError>> { let decoded_certificate = BASE64_ENGINE ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_external_services_apply_mitm_certificate_4818340175508895258
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/http_client/client fn apply_mitm_certificate( mut client_builder: reqwest::ClientBuilder, proxy_config: &Proxy, ) -> reqwest::ClientBuilder { if let Some(mitm_ca_cert) = &proxy_config.mitm_ca_certificate { ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 21, "total_crates": null }
fn_clm_external_services_new_-483753875943095846
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hashicorp_vault/core // Inherent implementation for HashiCorpVault /// Creates a new instance of HashiCorpVault based on the provided configuration. /// /// # Parameters /// /// - `config`: A reference to a `HashiCorpVau...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14487, "total_crates": null }
fn_clm_external_services_validate_-483753875943095846
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hashicorp_vault/core // Inherent implementation for HashiCorpVaultConfig /// Verifies that the [`HashiCorpVault`] configuration is usable. pub fn validate(&self) -> Result<(), &'static str> { when(self.url.is_defau...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 227, "total_crates": null }
fn_clm_external_services_read_-483753875943095846
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hashicorp_vault/core // Implementation of Kv2 for Engine fn read(client: &HashiCorpVault, location: String) -> Self::ReturnType<'_, String> { Box::pin(async move { let mut split = location.split(':'); ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 47, "total_crates": null }
fn_clm_external_services_fetch_-483753875943095846
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hashicorp_vault/core // Inherent implementation for HashiCorpVault /// Asynchronously fetches data from HashiCorp Vault using the specified engine. /// /// # Parameters /// /// - `data`: A String representing the locatio...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": true, "num_enums": null, "num_structs": null, "num_tables": null, "score": 24, "total_crates": null }
fn_clm_external_services_from_encoded_-483753875943095846
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hashicorp_vault/core // Implementation of Vec<u8> for FromEncoded fn from_encoded(input: String) -> Option<Self> { hex::decode(input).ok() }
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 15, "total_crates": null }
fn_clm_external_services_get_secret_1465100044782645857
clm
function
// Repository: hyperswitch // Crate: external_services // Module: crates/external_services/src/hashicorp_vault/implementers // Implementation of HashiCorpVault for SecretManagementInterface async fn get_secret( &self, input: Secret<String>, ) -> CustomResult<Secret<String>, SecretsManagementError> ...
{ "crate": "external_services", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 104, "total_crates": null }