id stringlengths 11 116 | type stringclasses 1
value | granularity stringclasses 4
values | content stringlengths 16 477k | metadata dict |
|---|---|---|---|---|
fn_clm_storage_impl_insert_merchant_key_store_4266589853430521646 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/merchant_key_store
// Implementation of MockDb for MerchantKeyStoreInterface
async fn insert_merchant_key_store(
&self,
state: &KeyManagerState,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 55,
"total_crates": null
} |
fn_clm_storage_impl_list_multiple_key_stores_4266589853430521646 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/merchant_key_store
// Implementation of MockDb for MerchantKeyStoreInterface
async fn list_multiple_key_stores(
&self,
state: &KeyManagerState,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 33,
"total_crates": null
} |
fn_clm_storage_impl_get_all_key_stores_4266589853430521646 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/merchant_key_store
// Implementation of MockDb for MerchantKeyStoreInterface
async fn get_all_key_stores(
&self,
state: &KeyManagerState,
key:... | {
"crate": "storage_impl",
"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_storage_impl_delete_merchant_key_store_by_merchant_id_4266589853430521646 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/merchant_key_store
// Implementation of MockDb for MerchantKeyStoreInterface
async fn delete_merchant_key_store_by_merchant_id(
&self,
merchant_id: &c... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_storage_impl_pg_connection_read_4181215574452794697 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/connection
pub async fn pg_connection_read<T: crate::DatabaseStore>(
store: &T,
) -> errors::CustomResult<
PooledConnection<'_, async_bb8_diesel::ConnectionMa... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 69,
"total_crates": null
} |
fn_clm_storage_impl_pg_connection_write_4181215574452794697 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/connection
pub async fn pg_connection_write<T: crate::DatabaseStore>(
store: &T,
) -> errors::CustomResult<
PooledConnection<'_, async_bb8_diesel::ConnectionM... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 37,
"total_crates": null
} |
fn_clm_storage_impl_redis_connection_4181215574452794697 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/connection
pub async fn redis_connection(
redis: &redis_interface::RedisSettings,
) -> redis_interface::RedisConnectionPool {
redis_interface::RedisConnection... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 15,
"total_crates": null
} |
fn_clm_storage_impl_pg_connection_read_-8123943447551112816 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/utils
pub async fn pg_connection_read<T: DatabaseStore>(
store: &T,
) -> error_stack::Result<
PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConne... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 69,
"total_crates": null
} |
fn_clm_storage_impl_try_redis_get_else_try_database_get_-8123943447551112816 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/utils
pub async fn try_redis_get_else_try_database_get<F, RFut, DFut, T>(
redis_fut: RFut,
database_call_closure: F,
) -> error_stack::Result<T, StorageError>... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 54,
"total_crates": null
} |
fn_clm_storage_impl_find_all_combined_kv_database_-8123943447551112816 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/utils
pub async fn find_all_combined_kv_database<F, RFut, DFut, T>(
redis_fut: RFut,
database_call: F,
limit: Option<i64>,
) -> error_stack::Result<Vec<T>... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 49,
"total_crates": null
} |
fn_clm_storage_impl_pg_connection_write_-8123943447551112816 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/utils
pub async fn pg_connection_write<T: DatabaseStore>(
store: &T,
) -> error_stack::Result<
PooledConnection<'_, async_bb8_diesel::ConnectionManager<PgConn... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 37,
"total_crates": null
} |
fn_clm_storage_impl_union_vec_-8123943447551112816 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/utils
fn union_vec<T>(mut kv_rows: Vec<T>, sql_rows: Vec<T>) -> Vec<T>
where
T: UniqueConstraints,
{
let mut kv_unique_keys = HashSet::new();
kv_rows.ite... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 27,
"total_crates": null
} |
fn_clm_storage_impl_new_-1737113234814815458 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis
// Inherent implementation for RedisStore
pub async fn new(
conf: &redis_interface::RedisSettings,
) -> error_stack::Result<Self, redis_interface::e... | {
"crate": "storage_impl",
"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_storage_impl_get_redis_conn_-1737113234814815458 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis
// Implementation of RedisStore for RedisConnInterface
fn get_redis_conn(
&self,
) -> error_stack::Result<
Arc<redis_interface::RedisConnect... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 209,
"total_crates": null
} |
fn_clm_storage_impl_fmt_-1737113234814815458 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis
// Implementation of RedisStore for std::fmt::Debug
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("CacheStore")
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 44,
"total_crates": null
} |
fn_clm_storage_impl_set_error_callback_-1737113234814815458 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis
// Inherent implementation for RedisStore
pub fn set_error_callback(&self, callback: tokio::sync::oneshot::Sender<()>) {
let redis_clone = self.redis_co... | {
"crate": "storage_impl",
"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_storage_impl_new_-6364918330300426834 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/database/store
// Implementation of ReplicaStore for DatabaseStore
async fn new(
config: (Database, Database),
tenant_config: &dyn TenantConfig,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14477,
"total_crates": null
} |
fn_clm_storage_impl_diesel_make_pg_pool_-6364918330300426834 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/database/store
pub async fn diesel_make_pg_pool(
database: &Database,
schema: &str,
test_transaction: bool,
) -> StorageResult<PgPool> {
let database_... | {
"crate": "storage_impl",
"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_storage_impl_get_master_pool_-6364918330300426834 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/database/store
// Implementation of ReplicaStore for DatabaseStore
fn get_master_pool(&self) -> &PgPool {
&self.master_pool
}
| {
"crate": "storage_impl",
"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_storage_impl_get_replica_pool_-6364918330300426834 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/database/store
// Implementation of ReplicaStore for DatabaseStore
fn get_replica_pool(&self) -> &PgPool {
&self.replica_pool
}
| {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_storage_impl_get_accounts_master_pool_-6364918330300426834 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/database/store
// Implementation of ReplicaStore for DatabaseStore
fn get_accounts_master_pool(&self) -> &PgPool {
&self.accounts_master_pool
}
| {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_storage_impl_update_payment_attempt_with_attempt_id_2548090575559944668 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_attempt
// Implementation of KVRouterStore<T> for PaymentAttemptInterface
async fn update_payment_attempt_with_attempt_id(
&self,
thi... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 150,
"total_crates": null
} |
fn_clm_storage_impl_insert_payment_attempt_2548090575559944668 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_attempt
// Implementation of KVRouterStore<T> for PaymentAttemptInterface
async fn insert_payment_attempt(
&self,
key_manager_state: ... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 123,
"total_crates": null
} |
fn_clm_storage_impl_to_storage_model_2548090575559944668 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_attempt
// Implementation of PaymentAttemptNew for DataModelExt
fn to_storage_model(self) -> Self::StorageModel {
DieselPaymentAttemptNew {
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 113,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_attempt_by_payment_id_merchant_id_attempt_id_2548090575559944668 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_attempt
// Implementation of KVRouterStore<T> for PaymentAttemptInterface
async fn find_payment_attempt_by_payment_id_merchant_id_attempt_id(
... | {
"crate": "storage_impl",
"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
} |
fn_clm_storage_impl_find_payment_attempt_by_attempt_id_merchant_id_2548090575559944668 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_attempt
// Implementation of KVRouterStore<T> for PaymentAttemptInterface
async fn find_payment_attempt_by_attempt_id_merchant_id(
&self,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 74,
"total_crates": null
} |
fn_clm_storage_impl_get_filtered_payment_intents_attempt_1128400087147478593 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_intent
// Implementation of crate::RouterStore<T> for PaymentIntentInterface
async fn get_filtered_payment_intents_attempt(
&self,
st... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 197,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_intent_by_payment_id_merchant_id_1128400087147478593 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_intent
// Implementation of crate::RouterStore<T> for PaymentIntentInterface
async fn find_payment_intent_by_payment_id_merchant_id(
&self,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 158,
"total_crates": null
} |
fn_clm_storage_impl_filter_payment_intent_by_constraints_1128400087147478593 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_intent
// Implementation of crate::RouterStore<T> for PaymentIntentInterface
async fn filter_payment_intent_by_constraints(
&self,
st... | {
"crate": "storage_impl",
"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_storage_impl_update_payment_intent_1128400087147478593 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_intent
// Implementation of crate::RouterStore<T> for PaymentIntentInterface
async fn update_payment_intent(
&self,
state: &KeyManage... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 119,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_intent_by_id_1128400087147478593 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payments/payment_intent
// Implementation of crate::RouterStore<T> for PaymentIntentInterface
async fn find_payment_intent_by_id(
&self,
state: &KeyMa... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 95,
"total_crates": null
} |
fn_clm_storage_impl_try_from_5076120225940169030 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/cache
// Implementation of CacheRedact<'_> for TryFrom<RedisValue>
fn try_from(v: RedisValue) -> Result<Self, Self::Error> {
let bytes = v.as_bytes().ok... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2669,
"total_crates": null
} |
fn_clm_storage_impl_from_5076120225940169030 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/cache
// Implementation of String for From<CacheKey>
fn from(val: CacheKey) -> Self {
if val.prefix.is_empty() {
val.key
} else {
... | {
"crate": "storage_impl",
"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_storage_impl_dact_from_redis_and_publish<
_5076120225940169030 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/cache
b async fn redact_from_redis_and_publish<
'a,
K: IntoIterator<Item = CacheKind<'a>> + Send + Clone,
>(
store: &(dyn RedisConnInterface + Send ... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 46,
"total_crates": null
} |
fn_clm_storage_impl_w(
_5076120225940169030 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/cache
// Inherent implementation for Cache
/// With given `time_to_live` and `time_to_idle` creates a moka cache.
///
/// `name` : Cache type name to b... | {
"crate": "storage_impl",
"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_storage_impl_t_or_populate_in_memory<T_5076120225940169030 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/cache
b async fn get_or_populate_in_memory<T, F, Fut>(
store: &(dyn RedisConnInterface + Send + Sync),
key: &str,
fun: F,
cache: &Cache,
) -> Cu... | {
"crate": "storage_impl",
"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_storage_impl_kv_wrapper_3970462156580834839 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/kv_store
pub async fn kv_wrapper<'a, T, D, S>(
store: &KVRouterStore<D>,
op: KvOperation<'a, S>,
partition_key: PartitionKey<'a>,
) -> CustomResult<... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 97,
"total_crates": null
} |
fn_clm_storage_impl_fmt_3970462156580834839 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/kv_store
// Implementation of Op<'_> for std::fmt::Display
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 44,
"total_crates": null
} |
fn_clm_storage_impl_decide_storage_scheme_3970462156580834839 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/kv_store
pub async fn decide_storage_scheme<T, D>(
store: &KVRouterStore<T>,
storage_scheme: MerchantStorageScheme,
operation: Op<'_>,
) -> Merchant... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 18,
"total_crates": null
} |
fn_clm_storage_impl_partition_number_3970462156580834839 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/kv_store
fn partition_number(key: PartitionKey<'_>, num_partitions: u8) -> u32 {
crc32fast::hash(key.to_string().as_bytes()) % u32::from(num_partitions)... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 8,
"total_crates": null
} |
fn_clm_storage_impl_shard_key_3970462156580834839 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/kv_store
fn shard_key(key: PartitionKey<'_>, num_partitions: u8) -> String {
format!("shard_{}", Self::partition_number(key, num_partitions))
}
| {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 3,
"total_crates": null
} |
fn_clm_storage_impl_on_message_4726383909084637409 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/pub_sub
// Implementation of std::sync::Arc<redis_interface::RedisConnectionPool> for PubSubInterface
async fn on_message(&self) -> error_stack::Result<(), redi... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 148,
"total_crates": null
} |
fn_clm_storage_impl_subscribe_4726383909084637409 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/pub_sub
// Implementation of std::sync::Arc<redis_interface::RedisConnectionPool> for PubSubInterface
async fn subscribe(&self, channel: &str) -> error_stack::R... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 33,
"total_crates": null
} |
fn_clm_storage_impl_publish_4726383909084637409 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/redis/pub_sub
// Implementation of std::sync::Arc<redis_interface::RedisConnectionPool> for PubSubInterface
async fn publish<'a>(
&self,
channel: &str... | {
"crate": "storage_impl",
"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_storage_impl_find_payment_attempt_by_payment_id_merchant_id_attempt_id_5202082131702034554 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_attempt
// Implementation of MockDb for PaymentAttemptInterface
async fn find_payment_attempt_by_payment_id_merchant_id_attempt_id(
&self,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 86,
"total_crates": null
} |
fn_clm_storage_impl_update_payment_attempt_with_attempt_id_5202082131702034554 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_attempt
// Implementation of MockDb for PaymentAttemptInterface
async fn update_payment_attempt_with_attempt_id(
&self,
this: PaymentA... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 84,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_attempt_by_attempt_id_merchant_id_5202082131702034554 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_attempt
// Implementation of MockDb for PaymentAttemptInterface
async fn find_payment_attempt_by_attempt_id_merchant_id(
&self,
_attem... | {
"crate": "storage_impl",
"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_storage_impl_insert_payment_attempt_5202082131702034554 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_attempt
// Implementation of MockDb for PaymentAttemptInterface
async fn insert_payment_attempt(
&self,
_key_manager_state: &KeyManage... | {
"crate": "storage_impl",
"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_storage_impl_find_payment_attempt_by_id_5202082131702034554 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_attempt
// Implementation of MockDb for PaymentAttemptInterface
async fn find_payment_attempt_by_id(
&self,
_key_manager_state: &KeyMa... | {
"crate": "storage_impl",
"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_storage_impl_update_payout_-1040875852437078251 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payouts
// Implementation of MockDb for PayoutsInterface
async fn update_payout(
&self,
_this: &Payouts,
_payout_update: PayoutsUpdate... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 50,
"total_crates": null
} |
fn_clm_storage_impl_find_payout_by_merchant_id_payout_id_-1040875852437078251 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payouts
// Implementation of MockDb for PayoutsInterface
async fn find_payout_by_merchant_id_payout_id(
&self,
_merchant_id: &common_utils::id... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_storage_impl_filter_payouts_by_constraints_-1040875852437078251 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payouts
// Implementation of MockDb for PayoutsInterface
async fn filter_payouts_by_constraints(
&self,
_merchant_id: &common_utils::id_type::... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 17,
"total_crates": null
} |
fn_clm_storage_impl_insert_payout_-1040875852437078251 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payouts
// Implementation of MockDb for PayoutsInterface
async fn insert_payout(
&self,
_payout: PayoutsNew,
_storage_scheme: storage_... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14,
"total_crates": null
} |
fn_clm_storage_impl_find_optional_payout_by_merchant_id_payout_id_-1040875852437078251 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payouts
// Implementation of MockDb for PayoutsInterface
async fn find_optional_payout_by_merchant_id_payout_id(
&self,
_merchant_id: &common_... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14,
"total_crates": null
} |
fn_clm_storage_impl_get_redis_conn_8090586842542804000 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/redis_conn
// Implementation of MockDb for RedisConnInterface
fn get_redis_conn(
&self,
) -> Result<Arc<redis_interface::RedisConnectionPool>, err... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 205,
"total_crates": null
} |
fn_clm_storage_impl_update_payout_attempt_-2490171417103140250 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payout_attempt
// Implementation of MockDb for PayoutAttemptInterface
async fn update_payout_attempt(
&self,
_this: &PayoutAttempt,
_p... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 65,
"total_crates": null
} |
fn_clm_storage_impl_find_payout_attempt_by_merchant_id_payout_attempt_id_-2490171417103140250 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payout_attempt
// Implementation of MockDb for PayoutAttemptInterface
async fn find_payout_attempt_by_merchant_id_payout_attempt_id(
&self,
_m... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_storage_impl_insert_payout_attempt_-2490171417103140250 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payout_attempt
// Implementation of MockDb for PayoutAttemptInterface
async fn insert_payout_attempt(
&self,
_payout_attempt: PayoutAttemptNew... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 17,
"total_crates": null
} |
fn_clm_storage_impl_find_payout_attempt_by_merchant_id_connector_payout_id_-2490171417103140250 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payout_attempt
// Implementation of MockDb for PayoutAttemptInterface
async fn find_payout_attempt_by_merchant_id_connector_payout_id(
&self,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 17,
"total_crates": null
} |
fn_clm_storage_impl_get_filters_for_payouts_-2490171417103140250 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payout_attempt
// Implementation of MockDb for PayoutAttemptInterface
async fn get_filters_for_payouts(
&self,
_payouts: &[Payouts],
_... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 17,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_intent_by_payment_id_merchant_id_9028097532822597608 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_intent
// Implementation of MockDb for PaymentIntentInterface
async fn find_payment_intent_by_payment_id_merchant_id(
&self,
_state: &... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 146,
"total_crates": null
} |
fn_clm_storage_impl_update_payment_intent_9028097532822597608 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_intent
// Implementation of MockDb for PaymentIntentInterface
async fn update_payment_intent(
&self,
_state: &KeyManagerState,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 89,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_intent_by_id_9028097532822597608 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_intent
// Implementation of MockDb for PaymentIntentInterface
async fn find_payment_intent_by_id(
&self,
_state: &KeyManagerState,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 87,
"total_crates": null
} |
fn_clm_storage_impl_find_payment_intent_by_merchant_reference_id_profile_id_9028097532822597608 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_intent
// Implementation of MockDb for PaymentIntentInterface
async fn find_payment_intent_by_merchant_reference_id_profile_id(
&self,
... | {
"crate": "storage_impl",
"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_storage_impl_insert_payment_intent_9028097532822597608 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/mock_db/payment_intent
// Implementation of MockDb for PaymentIntentInterface
async fn insert_payment_intent(
&self,
_state: &KeyManagerState,
... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 23,
"total_crates": null
} |
fn_clm_storage_impl_filter_payouts_by_constraints_-8307965716849434756 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payouts
// Implementation of crate::RouterStore<T> for PayoutsInterface
async fn filter_payouts_by_constraints(
&self,
merchant_id: &common_ut... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 111,
"total_crates": null
} |
fn_clm_storage_impl_update_payout_-8307965716849434756 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payouts
// Implementation of crate::RouterStore<T> for PayoutsInterface
async fn update_payout(
&self,
this: &Payouts,
payout: Payouts... | {
"crate": "storage_impl",
"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_storage_impl_to_storage_model_-8307965716849434756 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payouts
// Implementation of PayoutsUpdate for DataModelExt
fn to_storage_model(self) -> Self::StorageModel {
match self {
Self::Update {
... | {
"crate": "storage_impl",
"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_storage_impl_find_payout_by_merchant_id_payout_id_-8307965716849434756 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payouts
// Implementation of crate::RouterStore<T> for PayoutsInterface
async fn find_payout_by_merchant_id_payout_id(
&self,
merchant_id: &co... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 40,
"total_crates": null
} |
fn_clm_storage_impl_get_total_count_of_filtered_payouts_-8307965716849434756 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payouts
// Implementation of crate::RouterStore<T> for PayoutsInterface
async fn get_total_count_of_filtered_payouts(
&self,
merchant_id: &com... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 40,
"total_crates": null
} |
fn_clm_storage_impl_update_payout_attempt_8636921705122219769 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payout_attempt
// Implementation of crate::RouterStore<T> for PayoutAttemptInterface
async fn update_payout_attempt(
&self,
this: &PayoutAttem... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 85,
"total_crates": null
} |
fn_clm_storage_impl_to_storage_model_8636921705122219769 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payout_attempt
// Implementation of PayoutAttemptUpdate for DataModelExt
fn to_storage_model(self) -> Self::StorageModel {
match self {
Se... | {
"crate": "storage_impl",
"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_storage_impl_get_filters_for_payouts_8636921705122219769 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payout_attempt
// Implementation of crate::RouterStore<T> for PayoutAttemptInterface
async fn get_filters_for_payouts(
&self,
payouts: &[Payou... | {
"crate": "storage_impl",
"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_storage_impl_find_payout_attempt_by_merchant_id_payout_attempt_id_8636921705122219769 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payout_attempt
// Implementation of crate::RouterStore<T> for PayoutAttemptInterface
async fn find_payout_attempt_by_merchant_id_payout_attempt_id(
&s... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 40,
"total_crates": null
} |
fn_clm_storage_impl_insert_payout_attempt_8636921705122219769 | clm | function | // Repository: hyperswitch
// Crate: storage_impl
// Purpose: Storage backend implementations for database operations
// Module: crates/storage_impl/src/payouts/payout_attempt
// Implementation of crate::RouterStore<T> for PayoutAttemptInterface
async fn insert_payout_attempt(
&self,
new: PayoutAttempt... | {
"crate": "storage_impl",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 33,
"total_crates": null
} |
fn_clm_common_utils_valid_range_63747174501507261 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/tests/percentage
fn valid_range() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let percentage = Percentage::<PRECISION_2>::from_string("2.22".to_string());
assert!(pe... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 12,
"total_crates": null
} |
fn_clm_common_utils_valid_precision_63747174501507261 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/tests/percentage
fn valid_precision() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let percentage = Percentage::<PRECISION_2>::from_string("2.2".to_string());
assert!... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 12,
"total_crates": null
} |
fn_clm_common_utils_invalid_range_more_than_100_63747174501507261 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/tests/percentage
fn invalid_range_more_than_100() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let percentage = Percentage::<PRECISION_2>::from_string("100.01".to_string(... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 4,
"total_crates": null
} |
fn_clm_common_utils_invalid_range_less_than_0_63747174501507261 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/tests/percentage
fn invalid_range_less_than_0() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let percentage = Percentage::<PRECISION_2>::from_string("-0.01".to_string());... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 4,
"total_crates": null
} |
fn_clm_common_utils_invalid_string_63747174501507261 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/tests/percentage
fn invalid_string() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
let percentage = Percentage::<PRECISION_2>::from_string("-0.01ed".to_string());
asse... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 4,
"total_crates": null
} |
fn_clm_common_utils_generate_token_4038491806422316239 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/tokenization
/// Generates a new token string
///
/// # Returns
/// A randomly generated token string of length `TOKEN_LENGTH`
pub fn generate_token() -> String {
use nanoid:... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 10,
"total_crates": null
} |
fn_clm_common_utils_parse_struct_1952570677639635802 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/ext_traits
// Implementation of String for StringExt<T>
fn parse_struct<'de>(
&'de self,
type_name: &'static str,
) -> CustomResult<T, errors::ParsingError>
wh... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1442,
"total_crates": null
} |
fn_clm_common_utils_get_required_value_1952570677639635802 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn get_required_value(
self,
field_name: &'static str,
) -> CustomResult<T, errors::ValidationError> {
... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 936,
"total_crates": null
} |
fn_clm_common_utils_parse_value_1952570677639635802 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn parse_value<U>(self, type_name: &'static str) -> CustomResult<U, errors::ParsingError>
where
T: ValueExt,
... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 479,
"total_crates": null
} |
fn_clm_common_utils_async_map_1952570677639635802 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/ext_traits
// Implementation of Option<A> for AsyncExt<A>
async fn async_map<F, B, Fut>(self, func: F) -> Self::WrappedSelf<B>
where
F: FnOnce(A) -> Fut + Send,
Fu... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 292,
"total_crates": null
} |
fn_clm_common_utils_encode_to_value_1952570677639635802 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/ext_traits
// Implementation of A for Encode<'e>
fn encode_to_value(&'e self) -> CustomResult<serde_json::Value, errors::ParsingError>
where
Self: Serialize,
{
... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 202,
"total_crates": null
} |
fn_clm_common_utils_new_6003224971021474921 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/request
// Inherent implementation for RequestBuilder
pub fn new() -> Self {
Self {
method: Method::Get,
url: String::with_capacity(1024),
... | {
"crate": "common_utils",
"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_common_utils_default_6003224971021474921 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/request
// Implementation of RequestBuilder for Default
fn default() -> Self {
Self::new()
}
| {
"crate": "common_utils",
"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_common_utils_headers_6003224971021474921 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/request
// Inherent implementation for RequestBuilder
pub fn headers(mut self, headers: Vec<(String, Maskable<String>)>) -> Self {
self.headers.extend(headers);
self
... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1085,
"total_crates": null
} |
fn_clm_common_utils_build_6003224971021474921 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/request
// Inherent implementation for RequestBuilder
pub fn build(self) -> Request {
Request {
method: self.method,
url: self.url,
headers... | {
"crate": "common_utils",
"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_common_utils_method_6003224971021474921 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/request
// Inherent implementation for RequestBuilder
pub fn method(mut self, method: Method) -> Self {
self.method = method;
self
}
| {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 453,
"total_crates": null
} |
fn_clm_common_utils_default_payments_list_limit_-4950260110414978540 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/consts
/// Default limit for payments list API
pub fn default_payments_list_limit() -> u32 {
10
}
| {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 10,
"total_crates": null
} |
fn_clm_common_utils_default_payouts_list_limit_-4950260110414978540 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/consts
/// Default limit for payouts list API
pub fn default_payouts_list_limit() -> u32 {
10
}
| {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 10,
"total_crates": null
} |
fn_clm_common_utils_new_915834656205888258 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/types
// Inherent implementation for StringMajorUnit
/// forms a new major unit from amount
fn new(value: String) -> Self {
Self(value)
}
| {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14455,
"total_crates": null
} |
fn_clm_common_utils_try_from_915834656205888258 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/types
// Implementation of UnifiedMessage for TryFrom<String>
fn try_from(src: String) -> Result<Self, Self::Error> {
if src.len() > 1024 {
Err(report!(ValidationE... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2661,
"total_crates": null
} |
fn_clm_common_utils_from_915834656205888258 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/types
// Implementation of ConnectorTransactionId for From<String>
fn from(src: String) -> Self {
// ID already hashed
if src.starts_with("hs_hash_") {
Sel... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2622,
"total_crates": null
} |
fn_clm_common_utils_get_id_915834656205888258 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/types
// Implementation of None for ConnectorTransactionId
/// Implementation for retrieving the inner identifier
pub fn get_id(&self) -> &String {
match self {
... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2472,
"total_crates": null
} |
fn_clm_common_utils_into_inner_915834656205888258 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/types
// Inherent implementation for Url
/// Get the inner url
pub fn into_inner(self) -> url::Url {
self.0
}
| {
"crate": "common_utils",
"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_common_utils_get_api_event_type_577027735017984470 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/events
// Implementation of None for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
T::get_api_event_type(self)
}
| {
"crate": "common_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_common_utils_new_-7491340477675652801 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/encryption
// Inherent implementation for Encryption
pub fn new(item: Secret<Vec<u8>, EncryptionStrategy>) -> Self {
Self { inner: item }
}
| {
"crate": "common_utils",
"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
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.