id stringlengths 11 116 | type stringclasses 1
value | granularity stringclasses 4
values | content stringlengths 16 477k | metadata dict |
|---|---|---|---|---|
fn_clm_common_utils_from_3664153003756899413 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/payment
// Implementation of router_env::opentelemetry::Value for From<PaymentId>
fn from(val: PaymentId) -> Self {
Self::from(val.0 .0 .0)
}
| {
"crate": "common_utils",
"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_common_utils_from_str_3664153003756899413 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/payment
// Implementation of PaymentReferenceId for std::str::FromStr
fn from_str(s: &str) -> Result<Self, Self::Err> {
let cow_string = std::borrow::Cow::Owned(s.to_s... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 785,
"total_crates": null
} |
fn_clm_common_utils_wrap_3664153003756899413 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/payment
// Implementation of None for PaymentId
/// Wrap a string inside PaymentId
pub fn wrap(payment_id_string: String) -> CustomResult<Self, ValidationError> {
Se... | {
"crate": "common_utils",
"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_common_utils_generate_test_payment_id_for_sample_data_3664153003756899413 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/payment
// Implementation of None for PaymentId
/// Generate a test payment id with prefix test_
pub fn generate_test_payment_id_for_sample_data() -> Self {
let id =... | {
"crate": "common_utils",
"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_common_utils_get_irrelevant_id_3664153003756899413 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/payment
// Implementation of None for PaymentId
/// Get payment id in the format of irrelevant_payment_id_in_{flow}
pub fn get_irrelevant_id(flow: &str) -> Self {
le... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 39,
"total_crates": null
} |
fn_clm_common_utils_get_api_event_type_8326840139740291483 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/invoice
// Implementation of InvoiceId for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(crate::events::Api... | {
"crate": "common_utils",
"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_common_utils_get_api_event_type_3765022813668262941 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/customer
// Implementation of CustomerId for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(crate::events::A... | {
"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_from_459422617766455663 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/profile_acquirer
// Implementation of router_env::opentelemetry::Value for From<ProfileAcquirerId>
fn from(val: ProfileAcquirerId) -> Self {
Self::from(val.0 .0 .0)
... | {
"crate": "common_utils",
"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_common_utils_from_str_459422617766455663 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/profile_acquirer
// Implementation of ProfileAcquirerId for FromStr
fn from_str(s: &str) -> Result<Self, Self::Err> {
let cow_string = std::borrow::Cow::Owned(s.to_str... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 785,
"total_crates": null
} |
fn_clm_common_utils_cmp_459422617766455663 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/profile_acquirer
// Implementation of ProfileAcquirerId for Ord
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.0 .0 .0.cmp(&other.0 .0 .0)
}
| {
"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_get_api_event_type_459422617766455663 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/profile_acquirer
// Implementation of ProfileAcquirerId for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(c... | {
"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_partial_cmp_459422617766455663 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/profile_acquirer
// Implementation of ProfileAcquirerId for PartialOrd
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other))
}
| {
"crate": "common_utils",
"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_common_utils_get_external_authentication_request_poll_id_-4187107868894774292 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/authentication
// Inherent implementation for AuthenticationId
/// Get external authentication request poll id
pub fn get_external_authentication_request_poll_id(&self) -> S... | {
"crate": "common_utils",
"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_common_utils_generate_authentication_id_-4187107868894774292 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/authentication
// Inherent implementation for AuthenticationId
/// Generate Authentication Id from prefix
pub fn generate_authentication_id(prefix: &'static str) -> 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": 34,
"total_crates": null
} |
fn_clm_common_utils_get_api_event_type_-4187107868894774292 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/authentication
// Implementation of None for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(crate::events::A... | {
"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_get_api_event_type_-7151518258781889553 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/routing
// Implementation of RoutingId for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(crate::events::Api... | {
"crate": "common_utils",
"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_common_utils_get_api_event_type_-8295601603310586820 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/api_key
// Implementation of None for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(crate::events::ApiEvent... | {
"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_generate_key_id_-8295601603310586820 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/api_key
// Inherent implementation for ApiKeyId
/// Generate Api Key Id from prefix
pub fn generate_key_id(prefix: &'static str) -> Self {
Self(crate::generate_ref_i... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 25,
"total_crates": null
} |
fn_clm_common_utils_from_str_-4448028231025927881 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/relay
// Implementation of RelayId for FromStr
fn from_str(s: &str) -> Result<Self, Self::Err> {
let cow_string = std::borrow::Cow::Owned(s.to_string());
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": 785,
"total_crates": null
} |
fn_clm_common_utils_try_from_string_8665026993116460444 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/webhook_endpoint
// Inherent implementation for WebhookEndpointId
/// Get webhook_endpoint id from String
pub fn try_from_string(webhook_endpoint_id: String) -> CustomResult... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 88,
"total_crates": null
} |
fn_clm_common_utils_get_string_repr_8785449087001088396 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment_methods
// Inherent implementation for GlobalPaymentMethodId
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
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": 1370,
"total_crates": null
} |
fn_clm_common_utils_build_8785449087001088396 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment_methods
// Implementation of GlobalPaymentMethodSessionId for diesel::Queryable<diesel::sql_types::Text, DB>
fn build(row: Self::Row) -> diesel::deserialize:... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 572,
"total_crates": null
} |
fn_clm_common_utils_generate_8785449087001088396 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment_methods
// Inherent implementation for GlobalPaymentMethodId
/// Create a new GlobalPaymentMethodId from cell id information
pub fn generate(cell_id: &Cell... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 145,
"total_crates": null
} |
fn_clm_common_utils_to_sql_8785449087001088396 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment_methods
// Implementation of GlobalPaymentMethodSessionId for diesel::serialize::ToSql<diesel::sql_types::Text, DB>
fn to_sql<'b>(
&'b 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": 100,
"total_crates": null
} |
fn_clm_common_utils_from_sql_8785449087001088396 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment_methods
// Implementation of GlobalPaymentMethodSessionId for diesel::deserialize::FromSql<diesel::sql_types::Text, DB>
fn from_sql(value: DB::RawValue<'_>) ... | {
"crate": "common_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_common_utils_try_from_9007851615587624735 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/refunds
// Implementation of GlobalRefundId for TryFrom<std::borrow::Cow<'static, str>>
fn try_from(value: std::borrow::Cow<'static, str>) -> Result<Self, Self::Erro... | {
"crate": "common_utils",
"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_common_utils_get_string_repr_9007851615587624735 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/refunds
// Inherent implementation for GlobalRefundId
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
self.0.get_string_rep... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1370,
"total_crates": null
} |
fn_clm_common_utils_generate_9007851615587624735 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/refunds
// Inherent implementation for GlobalRefundId
/// Generate a new GlobalRefundId from a cell id
pub fn generate(cell_id: &crate::id_type::CellId) -> 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": 145,
"total_crates": null
} |
fn_clm_common_utils_to_sql_9007851615587624735 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/refunds
// Implementation of GlobalRefundId for diesel::serialize::ToSql<diesel::sql_types::Text, DB>
fn to_sql<'b>(
&'b self,
out: &mut diesel::seri... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 100,
"total_crates": null
} |
fn_clm_common_utils_from_sql_9007851615587624735 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/refunds
// Implementation of GlobalRefundId for diesel::deserialize::FromSql<diesel::sql_types::Text, DB>
fn from_sql(value: DB::RawValue<'_>) -> diesel::deserialize... | {
"crate": "common_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_common_utils_get_string_repr_-3248086116173448559 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/token
// Inherent implementation for GlobalTokenId
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
self.0.get_string_repr()... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1370,
"total_crates": null
} |
fn_clm_common_utils_generate_-3248086116173448559 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/token
// Inherent implementation for GlobalTokenId
/// Generate a new GlobalTokenId from a cell id
pub fn generate(cell_id: &crate::id_type::CellId) -> 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": 145,
"total_crates": null
} |
fn_clm_common_utils_from_string_-3248086116173448559 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/token
// Inherent implementation for GlobalTokenId
///Get GlobalTokenId from a string
pub fn from_string(token_string: &str) -> CustomResult<Self, ValidationError>... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 88,
"total_crates": null
} |
fn_clm_common_utils_get_api_event_type_-3248086116173448559 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/token
// Implementation of GlobalTokenId for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(crate:... | {
"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_try_from_-8013628068853010409 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment
// Implementation of GlobalAttemptId for TryFrom<std::borrow::Cow<'static, str>>
fn try_from(value: std::borrow::Cow<'static, str>) -> Result<Self, Self::Err... | {
"crate": "common_utils",
"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_common_utils_get_string_repr_-8013628068853010409 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment
// Implementation of None for GlobalAttemptId
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
self.0.get_string_rep... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1370,
"total_crates": null
} |
fn_clm_common_utils_generate_-8013628068853010409 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment
// Implementation of None for GlobalAttemptId
/// Generate a new GlobalAttemptId from a cell id
pub fn generate(cell_id: &super::CellId) -> 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": 145,
"total_crates": null
} |
fn_clm_common_utils_get_execute_revenue_recovery_id_-8013628068853010409 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment
// Implementation of None for GlobalPaymentId
/// Generate the id for revenue recovery Execute PT workflow
pub fn get_execute_revenue_recovery_id(
... | {
"crate": "common_utils",
"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_common_utils_get_psync_revenue_recovery_id_-8013628068853010409 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/payment
// Implementation of None for GlobalAttemptId
/// Generate the id for Revenue Recovery Psync PT workflow
pub fn get_psync_revenue_recovery_id(
&sel... | {
"crate": "common_utils",
"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_common_utils_try_from_2579767162077166762 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/customer
// Implementation of crate::id_type::CustomerId for TryFrom<GlobalCustomerId>
fn try_from(value: GlobalCustomerId) -> Result<Self, Self::Error> {
Se... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2665,
"total_crates": null
} |
fn_clm_common_utils_get_string_repr_2579767162077166762 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/customer
// Inherent implementation for GlobalCustomerId
/// Get string representation of the id
pub fn get_string_repr(&self) -> &str {
self.0.get_string_... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1370,
"total_crates": null
} |
fn_clm_common_utils_generate_2579767162077166762 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/customer
// Inherent implementation for GlobalCustomerId
/// Generate a new GlobalCustomerId from a cell id
pub fn generate(cell_id: &crate::id_type::CellId) -> Se... | {
"crate": "common_utils",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 145,
"total_crates": null
} |
fn_clm_common_utils_get_api_event_type_2579767162077166762 | clm | function | // Repository: hyperswitch
// Crate: common_utils
// Purpose: Utility functions shared across crates
// Module: crates/common_utils/src/id_type/global_id/customer
// Implementation of GlobalCustomerId for crate::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<crate::events::ApiEventsType> {
Some(... | {
"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_hyperswitch_domain_models_from_-7164040261352528320 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/tokenization
// Implementation of diesel_models::tokenization::TokenizationUpdateInternal for From<TokenizationUpdate>
fn from(value: To... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_convert_-7164040261352528320 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/tokenization
// Implementation of Tokenization for super::behaviour::Conversion
async fn convert(self) -> CustomResult<Self::DstType, Va... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_convert_back_-7164040261352528320 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/tokenization
// Implementation of Tokenization for super::behaviour::Conversion
async fn convert_back(
_state: &keymanager::KeyM... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_is_disabled_-7164040261352528320 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/tokenization
// Inherent implementation for Tokenization
pub fn is_disabled(&self) -> bool {
self.flag == common_enums::Tokeniza... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_construct_new_-7164040261352528320 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/tokenization
// Implementation of Tokenization for super::behaviour::Conversion
async fn construct_new(self) -> CustomResult<Self::NewDs... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_get_required_value_3304431074113062079 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn get_required_value(self, field_name: &'static str) -> DomainResult<T> {
... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_parse_value_3304431074113062079 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn parse_value<U>(self, type_name: &'static str) -> CustomResult<U, errors::P... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_parse_enum_3304431074113062079 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn parse_enum<E>(self, enum_name: &'static str) -> CustomResult<E, errors::Pa... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_check_value_present_3304431074113062079 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn check_value_present(&self, field_name: &'static str) -> DomainResult<()> {... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 22,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_update_value_3304431074113062079 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/ext_traits
// Implementation of Option<T> for OptionExt<T>
fn update_value(&mut self, value: Self) {
if let Some(a) = value {
... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 11,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_try_from_3282670415152624300 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/router_request_types
// Implementation of AccessTokenRequestData for TryFrom<(
router_data::ConnectorAuthType,
Option<Acc... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2659,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_from_3282670415152624300 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/router_request_types
// Implementation of SurchargeDetails for From<(
&RequestSurchargeDetails,
&payments::payment_attemp... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_get_connector_transaction_id_3282670415152624300 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/router_request_types
// Inherent implementation for ResponseId
pub fn get_connector_transaction_id(
&self,
) -> errors::Cust... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1273,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_total_surcharge_amount_3282670415152624300 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/router_request_types
// Inherent implementation for SurchargeDetails
pub fn get_total_surcharge_amount(&self) -> MinorUnit {
sel... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 33,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_new_-3534388213536739833 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/callback_mapper
// Inherent implementation for CallbackMapper
pub fn new(
id: String,
callback_mapper_id_type: common_en... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_try_from_9126787093276951243 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_methods
// Implementation of PaymentMethodVaultSourceDetails for TryFrom<(
Option<storage_enums::VaultType>,
Opti... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_from_9126787093276951243 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_methods
// Implementation of None for From<PaymentMethodVaultSourceDetails>
fn from(value: PaymentMethodVaultSourceDetails) -> S... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_get_id_9126787093276951243 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_methods
// Inherent implementation for PaymentMethod
pub fn get_id(&self) -> &id_type::GlobalPaymentMethodId {
&self.id
... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_get_string_repr_9126787093276951243 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_methods
// Inherent implementation for VaultId
pub fn get_string_repr(&self) -> &String {
&self.0
}
| {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1368,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_foreign_try_from_9126787093276951243 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_methods
// Implementation of Vec<PaymentMethodCustomerMigrate> for ForeignTryFrom<(&[payment_methods::PaymentMethodRecord], id_ty... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 456,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_try_from_172795816528281465 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/refunds
// Implementation of RefundListConstraints for TryFrom<(
api_models::refunds::RefundListRequest,
Option<Vec<commo... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_from_172795816528281465 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/refunds
// Implementation of RefundListConstraints for From<(api_models::refunds::RefundListRequest, Profile)>
fn from((value, profile):... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2604,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_new_-8652190558152331731 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_address
// Inherent implementation for PaymentAddress
pub fn new(
shipping: Option<Address>,
billing: Option<Add... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_get_payment_method_billing_-8652190558152331731 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_address
// Inherent implementation for PaymentAddress
pub fn get_payment_method_billing(&self) -> Option<&Address> {
sel... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 176,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_shipping_-8652190558152331731 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_address
// Inherent implementation for PaymentAddress
pub fn get_shipping(&self) -> Option<&Address> {
self.shipping.as_... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 119,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_unify_with_payment_method_data_billing_-8652190558152331731 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_address
// Inherent implementation for PaymentAddress
/// Unify the billing details from `payment_method_data.[payment_method_da... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_unify_with_payment_data_billing_-8652190558152331731 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payment_address
// Inherent implementation for PaymentAddress
/// Unify the billing details from `payment_method_data.[payment_method_da... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_from_-8614741292085815863 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_account
// Implementation of MerchantAccountUpdateInternal for From<MerchantAccountUpdate>
fn from(merchant_account_update: Mer... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2608,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_id_-8614741292085815863 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_account
// Inherent implementation for MerchantAccount
/// Get the unique identifier of MerchantAccount
pub fn get_id(&self) ... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_convert_-8614741292085815863 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_account
// Implementation of MerchantAccount for Conversion
async fn convert(self) -> CustomResult<Self::DstType, ValidationErr... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_get_org_id_-8614741292085815863 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_account
// Inherent implementation for MerchantAccount
/// Get the organization_id from MerchantAccount
pub fn get_org_id(&se... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 162,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_convert_back_-8614741292085815863 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_account
// Implementation of MerchantAccount for Conversion
async fn convert_back(
state: &keymanager::KeyManagerState,... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_deref_-5997548289883200385 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/router_data_v2
// Implementation of RouterDataV2<Flow, ResourceCommonData, FlowSpecificRequest, FlowSpecificResponse> for Deref
fn deref... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 41,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_from_-6250935193007323762 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payouts
// Implementation of PayoutFetchConstraints for From<api_models::payouts::PayoutListFilterConstraints>
fn from(value: api_models... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2612,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_new_5046766036688905859 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_connector_account
// Implementation of None for AccountReferenceMap
pub fn new(
hash_map: HashMap<id_type::MerchantConn... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14475,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_from_5046766036688905859 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_connector_account
// Implementation of MerchantConnectorAccountFeatureMetadata for From<DieselMerchantConnectorAccountFeatureMet... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2610,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_id_5046766036688905859 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_connector_account
// Inherent implementation for MerchantConnectorAccount
pub fn get_id(&self) -> id_type::MerchantConnectorAcc... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2474,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_convert_5046766036688905859 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_connector_account
// Implementation of MerchantConnectorAccount for behaviour::Conversion
async fn convert(self) -> CustomResul... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_validate_5046766036688905859 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_connector_account
// Implementation of None for AccountReferenceMap
fn validate(
hash_map: &HashMap<id_type::MerchantCo... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 219,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_id_713396906110587345 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payments
// Inherent implementation for PaymentIntent
pub fn get_id(&self) -> &id_type::GlobalPaymentId {
&self.id
}
| {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_create_domain_model_from_request_713396906110587345 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payments
// Inherent implementation for PaymentIntent
pub async fn create_domain_model_from_request(
payment_id: &id_type::Globa... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 148,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_payment_method_type_713396906110587345 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payments
// Inherent implementation for PaymentIntent
fn get_payment_method_type(&self) -> Option<common_enums::PaymentMethod> {
... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 125,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_updated_feature_metadata_713396906110587345 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payments
// Inherent implementation for PaymentAttemptRecordData<F>
pub fn get_updated_feature_metadata(
&self,
) -> CustomR... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 109,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_connector_customer_id_713396906110587345 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/payments
// Inherent implementation for PaymentConfirmData<F>
pub fn get_connector_customer_id(
&self,
customer: Option<... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 66,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_merchant_account_7918523242986745283 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_context
// Inherent implementation for MerchantContext
pub fn get_merchant_account(&self) -> &MerchantAccount {
match s... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2559,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_merchant_key_store_7918523242986745283 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/merchant_context
// Inherent implementation for MerchantContext
pub fn get_merchant_key_store(&self) -> &MerchantKeyStore {
matc... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1572,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_from_8161278287896526910 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/lib
// Implementation of payments::payment_attempt::ErrorDetails for From<&api_models::payments::RecordAttemptErrorDetails>
fn from(erro... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2612,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_id_8161278287896526910 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/lib
// Inherent implementation for RemoteStorageObject<T>
pub fn get_id(&self) -> String {
match self {
Self::Foreig... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2476,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_convert_back_8161278287896526910 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/lib
// Implementation of diesel_models::TransactionDetailsUiConfiguration for ApiModelToDieselModelConvertor<api_models::admin::Transacti... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_convert_from_8161278287896526910 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/lib
// Implementation of diesel_models::TransactionDetailsUiConfiguration for ApiModelToDieselModelConvertor<api_models::admin::Transacti... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_validate_-5820137439940548190 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/connector_endpoints
// Inherent implementation for NoParams
/// function to satisfy connector param validation macro
pub fn validate(&... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 219,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_get_connector_params_-5820137439940548190 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/connector_endpoints
// Inherent implementation for Connectors
pub fn get_connector_params(
&self,
connector: connector_e... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 38,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_try_from_7643475919217427936 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/disputes
// Implementation of DisputeListConstraints for TryFrom<(
api_models::disputes::DisputeListGetConstraints,
Optio... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_new_4408191244781062600 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/subscription
// Inherent implementation for SubscriptionUpdate
pub fn new(
connector_subscription_id: Option<String>,
pa... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14471,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_from_4408191244781062600 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/subscription
// Implementation of api_models::subscription::ClientSecret for From<ClientSecret>
fn from(domain_secret: ClientSecret) -> ... | {
"crate": "hyperswitch_domain_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2604,
"total_crates": null
} |
fn_clm_hyperswitch_domain_models_convert_4408191244781062600 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/subscription
// Implementation of SubscriptionUpdate for super::behaviour::Conversion
async fn convert(self) -> CustomResult<Self::DstTy... | {
"crate": "hyperswitch_domain_models",
"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_hyperswitch_domain_models_convert_back_4408191244781062600 | clm | function | // Repository: hyperswitch
// Crate: hyperswitch_domain_models
// Purpose: Business logic data models bridging API and database layers
// Module: crates/hyperswitch_domain_models/src/subscription
// Implementation of SubscriptionUpdate for super::behaviour::Conversion
async fn convert_back(
_state: &KeyManager... | {
"crate": "hyperswitch_domain_models",
"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
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.