id stringlengths 11 116 | type stringclasses 1
value | granularity stringclasses 4
values | content stringlengths 16 477k | metadata dict |
|---|---|---|---|---|
fn_clm_api_models_from_-5206725892084843784 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payment_methods
// Implementation of MigrateCardDetail for From<&Card>
fn from(card: &Card) -> Self {
Self {
card_number: masking::Secret::new(card.car... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2618,
"total_crates": null
} |
fn_clm_api_models_deserialize_-5206725892084843784 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payment_methods
// Implementation of ListMethodsForPaymentMethodsRequest for serde::Deserialize<'de>
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 176,
"total_crates": null
} |
fn_clm_api_models_get_payment_method_type_-5206725892084843784 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payment_methods
// Inherent implementation for RequestPaymentMethodTypes
pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> {
Some(self.... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 129,
"total_crates": null
} |
fn_clm_api_models_from_header_map_-7529224292561833183 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/proxy
// Inherent implementation for Headers
pub fn from_header_map(headers: Option<&HeaderMap>) -> Self {
headers
.map(|h| {
let map =... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 45,
"total_crates": null
} |
fn_clm_api_models_as_map_-7529224292561833183 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/proxy
// Inherent implementation for Headers
pub fn as_map(&self) -> &HashMap<String, String> {
&self.0
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 21,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_-2300207809800408672 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events
// Implementation of PaymentMethodSessionResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::PaymentMeth... | {
"crate": "api_models",
"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_api_models_try_from_7147108024175136003 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/open_router
// Implementation of DebitRoutingRequestData for TryFrom<(payment_methods::CoBadgedCardData, String)>
fn try_from(
(output, card_type): (payment_method... | {
"crate": "api_models",
"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_api_models_from_7147108024175136003 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/open_router
// Implementation of payment_methods::CoBadgedCardData for From<&DebitRoutingOutput>
fn from(output: &DebitRoutingOutput) -> Self {
Self {
... | {
"crate": "api_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_api_models_update_7147108024175136003 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/open_router
// Inherent implementation for DecisionEngineEliminationData
pub fn update(&mut self, new_config: Self) {
self.threshold = new_config.threshold;
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 87,
"total_crates": null
} |
fn_clm_api_models_get_card_networks_7147108024175136003 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/open_router
// Inherent implementation for CoBadgedCardNetworks
pub fn get_card_networks(&self) -> Vec<common_enums::CardNetwork> {
self.0.iter().map(|info| info.n... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 35,
"total_crates": null
} |
fn_clm_api_models_get_signature_network_7147108024175136003 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/open_router
// Inherent implementation for CoBadgedCardNetworks
pub fn get_signature_network(&self) -> Option<common_enums::CardNetwork> {
self.0
.iter... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 31,
"total_crates": null
} |
fn_clm_api_models_from_-4710265271675324014 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/refunds
// Implementation of enums::RefundStatus for From<RefundStatus>
fn from(status: RefundStatus) -> Self {
match status {
RefundStatus::Failed => ... | {
"crate": "api_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_api_models_get_refund_id_as_string_-4710265271675324014 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/refunds
// Inherent implementation for RefundResponse
pub fn get_refund_id_as_string(&self) -> String {
self.id.get_string_repr().to_owned()
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 22,
"total_crates": null
} |
fn_clm_api_models_new_-4329110896698221663 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/organization
// Inherent implementation for OrganizationNew
pub fn new(org_type: OrganizationType, org_name: Option<String>) -> Self {
Self {
org_id: i... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14465,
"total_crates": null
} |
fn_clm_api_models_default_6733962254890640749 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payouts
// Implementation of PayoutMethodData for Default
fn default() -> Self {
Self::Card(CardPayout::default())
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 7707,
"total_crates": null
} |
fn_clm_api_models_from_6733962254890640749 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payouts
// Implementation of PayoutMethodDataResponse for From<payout_method_utils::AdditionalPayoutMethodData>
fn from(additional_data: payout_method_utils::AdditionalPay... | {
"crate": "api_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_api_models_get_customer_id_6733962254890640749 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payouts
// Inherent implementation for PayoutCreateRequest
pub fn get_customer_id(&self) -> Option<&id_type::CustomerId> {
self.customer_id
.as_ref()
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 68,
"total_crates": null
} |
fn_clm_api_models_from_8874925974170754185 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/cards_info
// Implementation of CardInfoMigrationResponse for From<CardInfoMigrationResponseType>
fn from((response, record): CardInfoMigrationResponseType) -> Self {
... | {
"crate": "api_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_api_models_deserialize_7068997592184470589 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/revenue_recovery_data_backfill
// Implementation of ScheduledAtUpdate for Deserialize<'de>
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D... | {
"crate": "api_models",
"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_api_models_validate_and_get_records_with_errors_7068997592184470589 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/revenue_recovery_data_backfill
// Implementation of None for RevenueRecoveryDataBackfillForm
pub fn validate_and_get_records_with_errors(&self) -> Result<CsvParsingResult,... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 47,
"total_crates": null
} |
fn_clm_api_models_fmt_7068997592184470589 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/revenue_recovery_data_backfill
// Implementation of BackfillError for std::fmt::Display
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match ... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 38,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_7068997592184470589 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/revenue_recovery_data_backfill
// Implementation of UpdateTokenStatusResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType... | {
"crate": "api_models",
"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_api_models_error_response_7068997592184470589 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/revenue_recovery_data_backfill
// Implementation of BackfillError for ResponseError
fn error_response(&self) -> HttpResponse {
HttpResponse::BadRequest().json(serd... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 24,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_7519940221799831716 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/surcharge_decision_configs
// Implementation of SurchargeDecisionConfigReq for events::ApiEventMetric
fn get_api_event_type(&self) -> Option<events::ApiEventsType> {
... | {
"crate": "api_models",
"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_api_models_onal_-3871336949266383998 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payments
// Implementation of fn from(payment_method_da for PaymentMethodDataResponse {
itionalPaymentData) -> Self {
match payment_method_data {
Addit... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 124,
"total_crates": null
} |
fn_clm_api_models_details_in_request(&self) -> Option<_-3871336949266383998 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payments
// Implementation of None for /// Get the
stomer_details_in_request(&self) -> Option<Vec<&str>> {
if let Some(CustomerDetails {
id,
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 58,
"total_crates": null
} |
fn_clm_api_models_>(
_-3871336949266383998 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payments
<'de, D>(
deserializer: D,
) -> Result<Option<PaymentMethodDataRequest>, D::Error>
where
D: Deserializer<'de>,
{
#[derive(serd... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 58,
"total_crates": null
} |
fn_clm_api_models_s(&self) -> Option<_-3871336949266383998 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payments
// Implementation of fn get_bill for entMethodData for VoucherData {
ress(&self) -> Option<Address> {
match self {
Self::Alfamart(voucher_data... | {
"crate": "api_models",
"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_api_models_s(self, other: Option_-3871336949266383998 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payments
// Inherent implementation for pub fn get_op
_details(self, other: Option<&Self>) -> Self {
if let Some(other) = other {
let (first_name, las... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 48,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_3130588392109770897 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/conditional_configs
// Implementation of DecisionManagerRequest for events::ApiEventMetric
fn get_api_event_type(&self) -> Option<events::ApiEventsType> {
Some(eve... | {
"crate": "api_models",
"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_api_models_parse_comma_separated_8960038812343838943 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/disputes
fn parse_comma_separated<'de, D, T>(v: D) -> Result<Option<Vec<T>>, D::Error>
where
D: serde::Deserializer<'de>,
T: std::str::FromStr,
<T as std::str:... | {
"crate": "api_models",
"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_api_models_new_-5988986703809198155 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/subscription
// Inherent implementation for ClientSecret
pub fn new(secret: String) -> Self {
Self(secret)
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14465,
"total_crates": null
} |
fn_clm_api_models_as_str_-5988986703809198155 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/subscription
// Inherent implementation for ClientSecret
pub fn as_str(&self) -> &str {
&self.0
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1242,
"total_crates": null
} |
fn_clm_api_models_get_billing_address_-5988986703809198155 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/subscription
// Inherent implementation for CreateAndConfirmSubscriptionRequest
pub fn get_billing_address(&self) -> Option<Address> {
self.payment_details
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 67,
"total_crates": null
} |
fn_clm_api_models_as_string_-5988986703809198155 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/subscription
// Inherent implementation for ClientSecret
pub fn as_string(&self) -> &String {
&self.0
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 21,
"total_crates": null
} |
fn_clm_api_models_try_from_-8059452633077308952 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/enums
// Implementation of PayoutConnectors for TryFrom<Connector>
fn try_from(value: Connector) -> Result<Self, Self::Error> {
match value {
Connector... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2657,
"total_crates": null
} |
fn_clm_api_models_from_-8059452633077308952 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/enums
// Implementation of ReconPermissionScope for From<PermissionScope>
fn from(scope: PermissionScope) -> Self {
match scope {
PermissionScope::Read... | {
"crate": "api_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_api_models_eq_-8059452633077308952 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/enums
// Implementation of FieldType for PartialEq
fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Self::UserCardNumber, Self::UserCardNumb... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1664,
"total_crates": null
} |
fn_clm_api_models_convert_authentication_connector_-8059452633077308952 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/enums
pub fn convert_authentication_connector(connector_name: &str) -> Option<AuthenticationConnectors> {
AuthenticationConnectors::from_str(connector_name).ok()
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_api_models_get_billing_variants_-8059452633077308952 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/enums
// Inherent implementation for FieldType
pub fn get_billing_variants() -> Vec<Self> {
vec![
Self::UserBillingName,
Self::UserAddressL... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 24,
"total_crates": null
} |
fn_clm_api_models_default_list_limit_7078955511354128231 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/blocklist
fn default_list_limit() -> u16 {
10
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 0,
"total_crates": null
} |
fn_clm_api_models_get_user_id_-5014943549664492220 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/external_service_auth
// Inherent implementation for ExternalVerifyTokenResponse
pub fn get_user_id(&self) -> &str {
match self {
Self::Hypersense { us... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 171,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_3446517446963304696 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/poll
// Implementation of PollResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Poll {
poll_id: s... | {
"crate": "api_models",
"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_api_models_from_6829001868269539189 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhooks
// Implementation of WebhookFlow for From<IncomingWebhookEvent>
fn from(evt: IncomingWebhookEvent) -> Self {
match evt {
IncomingWebhookEvent:... | {
"crate": "api_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_api_models_get_payment_id_6829001868269539189 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhooks
// Inherent implementation for WebhookResponseTracker
pub fn get_payment_id(&self) -> Option<common_utils::id_type::GlobalPaymentId> {
match self {
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 35,
"total_crates": null
} |
fn_clm_api_models_get_payment_method_id_6829001868269539189 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhooks
// Inherent implementation for WebhookResponseTracker
pub fn get_payment_method_id(&self) -> Option<String> {
match self {
Self::PaymentMethod... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 32,
"total_crates": null
} |
fn_clm_api_models_from_ucs_event_type_6829001868269539189 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhooks
// Inherent implementation for IncomingWebhookEvent
/// Convert UCS event type integer to IncomingWebhookEvent
/// Maps from proto WebhookEventType enum values t... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 21,
"total_crates": null
} |
fn_clm_api_models_get_connector_transaction_id_as_string_6829001868269539189 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhooks
// Inherent implementation for ObjectReferenceId
pub fn get_connector_transaction_id_as_string(
self,
) -> Result<String, common_utils::errors::Valida... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 21,
"total_crates": null
} |
fn_clm_api_models_from_223265635973037133 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/api_keys
// Implementation of ApiKeyExpiration for From<Option<PrimitiveDateTime>>
fn from(date_time: Option<PrimitiveDateTime>) -> Self {
date_time.map_or(Self::N... | {
"crate": "api_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_api_models_deserialize_223265635973037133 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/api_keys
pub fn deserialize<'de, D>(deserializer: D) -> Result<(), D::Error>
where
D: serde::Deserializer<'de>,
{
struct NeverVisitor;
imp... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 142,
"total_crates": null
} |
fn_clm_api_models_serialize_223265635973037133 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/api_keys
pub fn serialize<S>(serializer: S) -> Result<S::Ok, S::Error>
where
S: serde::Serializer,
{
serializer.serialize_str(NEVER)
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 87,
"total_crates": null
} |
fn_clm_api_models_schema_223265635973037133 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/api_keys
// Implementation of ApiKeyExpiration for ToSchema<'a>
fn schema() -> (
&'a str,
utoipa::openapi::RefOr<utoipa::openapi::schema::Schema>,
) {
... | {
"crate": "api_models",
"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_api_models_visit_str_223265635973037133 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/api_keys
// Implementation of NeverVisitor for serde::de::Visitor<'_>
fn visit_str<E: serde::de::Error>(self, value: &str) -> Result<Self::Value, E> {
if v... | {
"crate": "api_models",
"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_api_models_into_298206735259128649 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/analytics
// Implementation of QueryLimit for Into<u64>
fn into(self) -> u64 {
match self {
Self::Top5 => 5,
Self::Top10 => 10,
}
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 6545,
"total_crates": null
} |
fn_clm_api_models_requires_forex_functionality_298206735259128649 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/analytics
// Inherent implementation for AnalyticsRequest
pub fn requires_forex_functionality(&self) -> bool {
self.payment_attempt
.as_ref()
... | {
"crate": "api_models",
"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_api_models_get_address_6589176179595977485 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/customers
// Inherent implementation for CustomerUpdateRequest
pub fn get_address(&self) -> Option<payments::AddressDetails> {
self.address.clone()
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 47,
"total_crates": null
} |
fn_clm_api_models_get_merchant_reference_id_6589176179595977485 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/customers
// Inherent implementation for CustomerResponse
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> {
self.merchant_reference_id.clone... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 26,
"total_crates": null
} |
fn_clm_api_models_get_default_customer_billing_address_6589176179595977485 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/customers
// Inherent implementation for CustomerUpdateRequest
pub fn get_default_customer_billing_address(&self) -> Option<payments::AddressDetails> {
self.defaul... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 23,
"total_crates": null
} |
fn_clm_api_models_get_default_customer_shipping_address_6589176179595977485 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/customers
// Inherent implementation for CustomerUpdateRequest
pub fn get_default_customer_shipping_address(&self) -> Option<payments::AddressDetails> {
self.defau... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 23,
"total_crates": null
} |
fn_clm_api_models_get_optional_email_6589176179595977485 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/customers
// Inherent implementation for CustomerRequest
pub fn get_optional_email(&self) -> Option<pii::Email> {
Some(self.email.clone())
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 20,
"total_crates": null
} |
fn_clm_api_models_from_-8809082633815412222 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/profile_acquirer
// Implementation of ProfileAcquirerResponse for From<(
common_utils::id_type::ProfileAcquirerId,
&common_utils::id_type::ProfileId,
... | {
"crate": "api_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_api_models_get_billing_address_-827691694973891486 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/authentication
// Inherent implementation for AuthenticationEligibilityRequest
pub fn get_billing_address(&self) -> Option<Address> {
self.billing.clone()
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 59,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_-827691694973891486 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/authentication
// Implementation of AuthenticationSyncPostUpdateRequest for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsTy... | {
"crate": "api_models",
"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_api_models_get_next_action_api_-827691694973891486 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/authentication
// Inherent implementation for AuthenticationEligibilityRequest
pub fn get_next_action_api(
&self,
base_url: String,
authentication_... | {
"crate": "api_models",
"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_api_models_get_shipping_address_-827691694973891486 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/authentication
// Inherent implementation for AuthenticationEligibilityRequest
pub fn get_shipping_address(&self) -> Option<Address> {
self.shipping.clone()
}
| {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 23,
"total_crates": null
} |
fn_clm_api_models_get_browser_information_-827691694973891486 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/authentication
// Inherent implementation for AuthenticationEligibilityRequest
pub fn get_browser_information(&self) -> Option<BrowserInformation> {
self.browser_i... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 23,
"total_crates": null
} |
fn_clm_api_models_new_2435838503430416793 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/routing
// Inherent implementation for RuleMigrationResponse
pub fn new(
profile_id: common_utils::id_type::ProfileId,
euclid_algorithm_id: common_utils::i... | {
"crate": "api_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_api_models_default_2435838503430416793 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/routing
// Implementation of ContractBasedRoutingConfig for Default
fn default() -> Self {
Self {
config: Some(ContractBasedRoutingConfigBody {
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 7703,
"total_crates": null
} |
fn_clm_api_models_try_from_2435838503430416793 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/routing
// Implementation of StraightThroughAlgorithm for TryFrom<StraightThroughAlgorithmSerde>
fn try_from(value: StraightThroughAlgorithmSerde) -> Result<Self, Self::Er... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 2671,
"total_crates": null
} |
fn_clm_api_models_from_2435838503430416793 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/routing
// Implementation of RoutableConnectorChoice for From<DeRoutableConnectorChoice>
fn from(choice: DeRoutableConnectorChoice) -> Self {
Self {
ch... | {
"crate": "api_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_api_models_eq_2435838503430416793 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/routing
// Implementation of RoutableConnectorChoice for PartialEq
fn eq(&self, other: &Self) -> bool {
self.connector.eq(&other.connector)
&& self.mer... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 1662,
"total_crates": null
} |
fn_clm_api_models_from_-5453112875249631948 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/health_check
// Implementation of Option<bool> for From<HealthState>
fn from(value: HealthState) -> Self {
match value {
HealthState::Running => Some(t... | {
"crate": "api_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_api_models_get_api_event_type_540003125855632861 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/ephemeral_key
// Implementation of ClientSecretResponse for common_utils::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType... | {
"crate": "api_models",
"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_api_models__network_transaction_id_and_card_details_flow(s_-9214414268479607772 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/mandates
// Inherent implementation for curringDetails {
b fn is_network_transaction_id_and_card_details_flow(self) -> bool {
matches!(self, Self::NetworkTransacti... | {
"crate": "api_models",
"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_api_models_get_api_event_type_-2666573885222363361 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/three_ds_decision_rule
// Implementation of ThreeDsDecisionRuleExecuteResponse for common_utils::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<common_utils... | {
"crate": "api_models",
"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_api_models_new_8914312575702603349 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhook_events
// Inherent implementation for TotalEventsResponse
pub fn new(total_count: i64, events: Vec<EventListItemResponse>) -> Self {
Self {
eve... | {
"crate": "api_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_api_models_get_api_event_type_8914312575702603349 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/webhook_events
// Implementation of WebhookDeliveryRetryRequestInternal for common_utils::events::ApiEventMetric
fn get_api_event_type(&self) -> Option<common_utils::event... | {
"crate": "api_models",
"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_api_models_new_-7069525346315822665 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/admin
// Inherent implementation for MerchantConnectorInfo
pub fn new(
connector_label: String,
merchant_connector_id: id_type::MerchantConnectorAccountId,... | {
"crate": "api_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_api_models_default_-7069525346315822665 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/admin
// Implementation of TtlForExtendedCardInfo for Default
fn default() -> Self {
Self(consts::DEFAULT_TTL_FOR_EXTENDED_CARD_INFO)
}
| {
"crate": "api_models",
"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_api_models_validate_-7069525346315822665 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/admin
// Inherent implementation for BusinessPaymentLinkConfig
pub fn validate(&self) -> Result<(), &str> {
let host_domain_valid = self
.domain_name
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 239,
"total_crates": null
} |
fn_clm_api_models_deserialize_-7069525346315822665 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/admin
// Implementation of TtlForExtendedCardInfo for Deserialize<'de>
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
D: serde::Deserialize... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 140,
"total_crates": null
} |
fn_clm_api_models_get_payment_method_type_-7069525346315822665 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/admin
// Inherent implementation for PaymentMethodsEnabled
pub fn get_payment_method_type(
&self,
) -> Option<&Vec<payment_methods::RequestPaymentMethodTypes>>... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 131,
"total_crates": null
} |
fn_clm_api_models_validate_field_and_get_-4539846180506973705 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/payments/trait_impls
// Implementation of common_types::primitive_wrappers::RequestExtendedAuthorizationBool for crate::ValidateFieldAndGet<payments::PaymentsRequest>
fn v... | {
"crate": "api_models",
"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_api_models_new_-8459004448201607555 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/types
// Inherent implementation for ApiError
pub fn new(
sub_code: &'static str,
error_identifier: u16,
error_message: impl ToString,
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 14465,
"total_crates": null
} |
fn_clm_api_models_from_-8459004448201607555 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/types
// Implementation of ErrorResponse for From<&ApiErrorResponse>
fn from(value: &ApiErrorResponse) -> Self {
let error_info = value.get_internal_error()... | {
"crate": "api_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_api_models_fmt_-8459004448201607555 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/types
// Implementation of ApiErrorResponse for ::core::fmt::Display
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let error_response... | {
"crate": "api_models",
"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_api_models_get_internal_error_-8459004448201607555 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/types
// Inherent implementation for ApiErrorResponse
pub(crate) fn get_internal_error(&self) -> &ApiError {
match self {
Self::Unauthorized(i)
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 21,
"total_crates": null
} |
fn_clm_api_models_get_internal_error_mut_-8459004448201607555 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/types
// Inherent implementation for ApiErrorResponse
pub fn get_internal_error_mut(&mut self) -> &mut ApiError {
match self {
Self::Unauthorize... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": true,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 21,
"total_crates": null
} |
fn_clm_api_models_error_response_564651257933940686 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/actix
// Implementation of ApiErrorResponse for actix_web::ResponseError
fn error_response(&self) -> actix_web::HttpResponse {
use actix_web::http::header;
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 30,
"total_crates": null
} |
fn_clm_api_models_status_code_564651257933940686 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/errors/actix
// Implementation of ApiErrorResponse for actix_web::ResponseError
fn status_code(&self) -> reqwest::StatusCode {
use reqwest::StatusCode;
ma... | {
"crate": "api_models",
"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_api_models_get_api_event_type_-3954689250158598587 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/locker_migration
// Implementation of MigrateCardResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<common_utils::events::ApiEventsType> {
S... | {
"crate": "api_models",
"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_api_models_get_api_event_type_8350895787667286611 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/dispute
// Implementation of DisputesAggregateResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Resour... | {
"crate": "api_models",
"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_api_models_get_api_event_type_8881428012375381123 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/payouts
// Implementation of PayoutLinkInitiateRequest for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Payout... | {
"crate": "api_models",
"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_api_models_get_api_event_type_-302017817635946511 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/refund
// Implementation of RefundListFilters for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::ResourceListAPI... | {
"crate": "api_models",
"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_api_models_get_api_event_type_8398341637152126259 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/external_service_auth
// Implementation of ExternalSignoutTokenRequest for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEv... | {
"crate": "api_models",
"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_api_models_get_api_event_type_-2190667616093404911 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/payment
// Implementation of payments::PaymentsCaptureResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType... | {
"crate": "api_models",
"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_api_models_get_api_event_type_7276555110552447802 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/recon
// Implementation of VerifyTokenResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::User {
... | {
"crate": "api_models",
"file": null,
"file_size": null,
"is_async": false,
"is_pub": false,
"num_enums": null,
"num_structs": null,
"num_tables": null,
"score": 30,
"total_crates": null
} |
fn_clm_api_models_get_api_event_type_-6742731289014925684 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/customer
// Implementation of CustomerListResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::ResourceLi... | {
"crate": "api_models",
"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_api_models_get_api_event_type_3668477515344801069 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/gsm
// Implementation of gsm::GsmResponse for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEventsType::Gsm)
}
| {
"crate": "api_models",
"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_api_models_get_api_event_type_1473563448441917735 | clm | function | // Repository: hyperswitch
// Crate: api_models
// Purpose: External API request/response types (what clients see)
// Module: crates/api_models/src/events/revenue_recovery
// Implementation of RevenueRecoveryRetriggerRequest for ApiEventMetric
fn get_api_event_type(&self) -> Option<ApiEventsType> {
Some(ApiEve... | {
"crate": "api_models",
"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
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.