text stringlengths 65 57.3k | file_path stringlengths 22 92 | module stringclasses 38
values | type stringclasses 7
values | struct_name stringlengths 3 60 ⌀ | impl_count int64 0 60 ⌀ | traits listlengths 0 59 ⌀ | tokens int64 16 8.19k | function_name stringlengths 3 85 ⌀ | type_name stringlengths 1 67 ⌀ | trait_name stringclasses 573
values | method_count int64 0 31 ⌀ | public_method_count int64 0 19 ⌀ | submodule_count int64 0 56 ⌀ | export_count int64 0 9 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// Implementation: impl api::PaymentSession for for Braintree
// File: crates/hyperswitch_connectors/src/connectors/braintree.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentSession for for Braintree | crates/hyperswitch_connectors/src/connectors/braintree.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Braintree | api::PaymentSession for | 0 | 0 | null | null |
// Implementation: impl api::PaymentToken for for Bambora
// File: crates/hyperswitch_connectors/src/connectors/bambora.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Bambora | crates/hyperswitch_connectors/src/connectors/bambora.rs | hyperswitch_connectors | impl_block | null | null | null | 60 | null | Bambora | api::PaymentToken for | 0 | 0 | null | null |
// Struct: DwollaAmount
// File: crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct DwollaAmount | crates/hyperswitch_connectors/src/connectors/dwolla/transformers.rs | hyperswitch_connectors | struct_definition | DwollaAmount | 0 | [] | 48 | null | null | null | null | null | null | null |
// Implementation: impl GetPaymentMethodType for for CryptoData
// File: crates/hyperswitch_domain_models/src/payment_method_data.rs
// Module: hyperswitch_domain_models
// Methods: 1 total (0 public)
impl GetPaymentMethodType for for CryptoData | crates/hyperswitch_domain_models/src/payment_method_data.rs | hyperswitch_domain_models | impl_block | null | null | null | 56 | null | CryptoData | GetPaymentMethodType for | 1 | 0 | null | null |
// Implementation: impl PaymentMethodRecord
// File: crates/api_models/src/payment_methods.rs
// Module: api_models
// Methods: 3 total (0 public)
impl PaymentMethodRecord | crates/api_models/src/payment_methods.rs | api_models | impl_block | null | null | null | 39 | null | PaymentMethodRecord | null | 3 | 0 | null | null |
// Struct: PazeConsumer
// File: crates/hyperswitch_domain_models/src/router_data.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PazeConsumer | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | PazeConsumer | 0 | [] | 42 | null | null | null | null | null | null | null |
// Struct: DashboardMetadataUpdateInternal
// File: crates/diesel_models/src/user/dashboard_metadata.rs
// Module: diesel_models
// Implementations: 0
pub struct DashboardMetadataUpdateInternal | crates/diesel_models/src/user/dashboard_metadata.rs | diesel_models | struct_definition | DashboardMetadataUpdateInternal | 0 | [] | 40 | null | null | null | null | null | null | null |
// Struct: RedsysRouterData
// File: crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct RedsysRouterData<T> | crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs | hyperswitch_connectors | struct_definition | RedsysRouterData | 0 | [] | 51 | null | null | null | null | null | null | null |
// Implementation: impl Responder
// File: crates/router/src/analytics.rs
// Module: router
// Methods: 0 total (0 public)
impl Responder | crates/router/src/analytics.rs | router | impl_block | null | null | null | 35 | null | Responder | null | 0 | 0 | null | null |
// Struct: Nomupay
// File: crates/hyperswitch_connectors/src/connectors/nomupay.rs
// Module: hyperswitch_connectors
// Implementations: 27
// Traits: api::Payment, api::PaymentSession, api::ConnectorAccessToken, api::MandateSetup, api::PaymentAuthorize, api::PaymentSync, api::PaymentCapture, api::PaymentVoid, api::Re... | crates/hyperswitch_connectors/src/connectors/nomupay.rs | hyperswitch_connectors | struct_definition | Nomupay | 27 | [
"api::Payment",
"api::PaymentSession",
"api::ConnectorAccessToken",
"api::MandateSetup",
"api::PaymentAuthorize",
"api::PaymentSync",
"api::PaymentCapture",
"api::PaymentVoid",
"api::Refund",
"api::RefundExecute",
"api::RefundSync",
"api::PaymentToken",
"ConnectorCommon",
"ConnectorValidat... | 191 | null | null | null | null | null | null | null |
// Function: from_merchant_name
// File: crates/common_utils/src/id_type/merchant.rs
// Module: common_utils
// Documentation: Create a Merchant id from MerchantName
pub fn from_merchant_name(merchant_name: MerchantName) -> Self | crates/common_utils/src/id_type/merchant.rs | common_utils | function_signature | null | null | null | 53 | from_merchant_name | null | null | null | null | null | null |
// Implementation: impl super::payments::distribution::PaymentDistributionAnalytics for for SqlxClient
// File: crates/analytics/src/sqlx.rs
// Module: analytics
// Methods: 0 total (0 public)
impl super::payments::distribution::PaymentDistributionAnalytics for for SqlxClient | crates/analytics/src/sqlx.rs | analytics | impl_block | null | null | null | 60 | null | SqlxClient | super::payments::distribution::PaymentDistributionAnalytics for | 0 | 0 | null | null |
// File: crates/hyperswitch_domain_models/src/payments.rs
// Module: hyperswitch_domain_models
// Public functions: 32
// Public structs: 18
#[cfg(feature = "v2")]
use std::marker::PhantomData;
#[cfg(feature = "v2")]
use api_models::payments::{SessionToken, VaultSessionDetails};
use common_types::primitive_wrappers;
... | crates/hyperswitch_domain_models/src/payments.rs#chunk0 | hyperswitch_domain_models | chunk | null | null | null | 8,184 | null | null | null | null | null | null | null |
// Struct: XenditSplitResponse
// File: crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct XenditSplitResponse | crates/hyperswitch_connectors/src/connectors/xendit/transformers.rs | hyperswitch_connectors | struct_definition | XenditSplitResponse | 0 | [] | 52 | null | null | null | null | null | null | null |
// Function: retrieve_conditional_config
// File: crates/router/src/core/conditional_config.rs
// Module: router
pub fn retrieve_conditional_config(
state: SessionState,
key_store: domain::MerchantKeyStore,
profile: domain::Profile,
) -> RouterResponse<common_types::payments::DecisionManagerResponse> | crates/router/src/core/conditional_config.rs | router | function_signature | null | null | null | 69 | retrieve_conditional_config | null | null | null | null | null | null |
// Function: retrieve_dynamic_routing_volume_split
// File: crates/router/src/core/routing.rs
// Module: router
pub fn retrieve_dynamic_routing_volume_split(
state: SessionState,
merchant_context: domain::MerchantContext,
profile_id: common_utils::id_type::ProfileId,
) -> RouterResponse<routing_types::Rout... | crates/router/src/core/routing.rs | router | function_signature | null | null | null | 74 | retrieve_dynamic_routing_volume_split | null | null | null | null | null | null |
// Function: new
// File: crates/hyperswitch_connectors/src/connectors/breadpay.rs
// Module: hyperswitch_connectors
pub fn new() -> &'static Self | crates/hyperswitch_connectors/src/connectors/breadpay.rs | hyperswitch_connectors | function_signature | null | null | null | 39 | new | null | null | null | null | null | null |
// File: crates/router/src/db/merchant_account.rs
// Module: router
#[cfg(feature = "olap")]
use std::collections::HashMap;
use common_utils::{ext_traits::AsyncExt, types::keymanager::KeyManagerState};
use diesel_models::MerchantAccountUpdateInternal;
use error_stack::{report, ResultExt};
use router_env::{instrument,... | crates/router/src/db/merchant_account.rs | router | full_file | null | null | null | 5,911 | null | null | null | null | null | null | null |
// Function: get_disputes_filters
// File: crates/router/src/routes/disputes.rs
// Module: router
pub fn get_disputes_filters(state: web::Data<AppState>, req: HttpRequest) -> HttpResponse | crates/router/src/routes/disputes.rs | router | function_signature | null | null | null | 47 | get_disputes_filters | null | null | null | null | null | null |
// Function: log_fraud_check
// File: crates/router/src/services/kafka.rs
// Module: router
pub fn log_fraud_check(
&self,
attempt: &FraudCheck,
old_attempt: Option<FraudCheck>,
tenant_id: TenantID,
) -> MQResult<()> | crates/router/src/services/kafka.rs | router | function_signature | null | null | null | 65 | log_fraud_check | null | null | null | null | null | null |
// Function: find_pm_collect_link_by_link_id
// File: crates/diesel_models/src/query/generic_link.rs
// Module: diesel_models
pub fn find_pm_collect_link_by_link_id(
conn: &PgPooledConn,
link_id: &str,
) -> StorageResult<PaymentMethodCollectLink> | crates/diesel_models/src/query/generic_link.rs | diesel_models | function_signature | null | null | null | 68 | find_pm_collect_link_by_link_id | null | null | null | null | null | null |
// Implementation: impl Maskable
// File: crates/masking/src/maskable.rs
// Module: masking
// Methods: 5 total (5 public)
impl Maskable | crates/masking/src/maskable.rs | masking | impl_block | null | null | null | 37 | null | Maskable | null | 5 | 5 | null | null |
// Implementation: impl api::PaymentAuthorize for for Worldpay
// File: crates/hyperswitch_connectors/src/connectors/worldpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentAuthorize for for Worldpay | crates/hyperswitch_connectors/src/connectors/worldpay.rs | hyperswitch_connectors | impl_block | null | null | null | 57 | null | Worldpay | api::PaymentAuthorize for | 0 | 0 | null | null |
// Function: create_merchant_account_request_for_org
// File: crates/router/src/utils/user.rs
// Module: router
pub fn create_merchant_account_request_for_org(
req: user_api::UserOrgMerchantCreateRequest,
org: organization::Organization,
product_type: common_enums::MerchantProductType,
) -> UserResult<api_... | crates/router/src/utils/user.rs | router | function_signature | null | null | null | 81 | create_merchant_account_request_for_org | null | null | null | null | null | null |
// File: crates/router/src/db/capture.rs
// Module: router
use router_env::{instrument, tracing};
use super::MockDb;
use crate::{
core::errors::{self, CustomResult},
types::storage::{self as types, enums},
};
#[async_trait::async_trait]
pub trait CaptureInterface {
async fn insert_capture(
&self,... | crates/router/src/db/capture.rs | router | full_file | null | null | null | 1,696 | null | null | null | null | null | null | null |
// Function: connector_create
// File: crates/router/src/routes/admin.rs
// Module: router
pub fn connector_create(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<admin::MerchantConnectorCreate>,
) -> HttpResponse | crates/router/src/routes/admin.rs | router | function_signature | null | null | null | 57 | connector_create | null | null | null | null | null | null |
// File: crates/analytics/src/payments/distribution/payment_error_message.rs
// Module: analytics
use api_models::analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, PaymentDistributionBody, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use diesel... | crates/analytics/src/payments/distribution/payment_error_message.rs | analytics | full_file | null | null | null | 1,244 | null | null | null | null | null | null | null |
// Implementation: impl Responder
// File: crates/router/src/routes/payments.rs
// Module: router
// Methods: 0 total (0 public)
impl Responder | crates/router/src/routes/payments.rs | router | impl_block | null | null | null | 36 | null | Responder | null | 0 | 0 | null | null |
// Implementation: impl ConnectorValidation for for Amazonpay
// File: crates/hyperswitch_connectors/src/connectors/amazonpay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl ConnectorValidation for for Amazonpay | crates/hyperswitch_connectors/src/connectors/amazonpay.rs | hyperswitch_connectors | impl_block | null | null | null | 54 | null | Amazonpay | ConnectorValidation for | 0 | 0 | null | null |
// Function: new
// File: crates/api_models/src/routing.rs
// Module: api_models
pub fn new(
algorithm_id_with_timestamp: DynamicAlgorithmWithTimestamp<
common_utils::id_type::RoutingId,
>,
) -> Self | crates/api_models/src/routing.rs | api_models | function_signature | null | null | null | 54 | new | null | null | null | null | null | null |
// Struct: FluidData
// File: crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct FluidData | crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs | hyperswitch_connectors | struct_definition | FluidData | 0 | [] | 48 | null | null | null | null | null | null | null |
// Struct: NovalnetRefundsTransactionData
// File: crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct NovalnetRefundsTransactionData | crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs | hyperswitch_connectors | struct_definition | NovalnetRefundsTransactionData | 0 | [] | 56 | null | null | null | null | null | null | null |
self,
state: &SessionState,
_merchant_id: &id_type::MerchantId,
key_store: &domain::MerchantKeyStore,
) -> RouterResult<storage::MerchantAccountUpdate> {
let key_manager_state = &state.into();
let key = key_store.key.get_inner().peek();
let merchant_details =... | crates/router/src/core/admin.rs#chunk1 | router | chunk | null | null | null | 8,185 | null | null | null | null | null | null | null |
// Struct: NumberComparison
// File: crates/euclid/src/frontend/ast.rs
// Module: euclid
// Implementations: 0
pub struct NumberComparison | crates/euclid/src/frontend/ast.rs | euclid | struct_definition | NumberComparison | 0 | [] | 36 | null | null | null | null | null | null | null |
// Struct: AffirmAuthType
// File: crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct AffirmAuthType | crates/hyperswitch_connectors/src/connectors/affirm/transformers.rs | hyperswitch_connectors | struct_definition | AffirmAuthType | 0 | [] | 50 | null | null | null | null | null | null | null |
// Function: generate_access_token
// File: crates/router/src/utils/connector_onboarding/paypal.rs
// Module: router
pub fn generate_access_token(state: SessionState) -> RouterResult<types::AccessToken> | crates/router/src/utils/connector_onboarding/paypal.rs | router | function_signature | null | null | null | 45 | generate_access_token | null | null | null | null | null | null |
// Implementation: impl api::ExternalVaultCreate for for HyperswitchVault
// File: crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::ExternalVaultCreate for for HyperswitchVault | crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs | hyperswitch_connectors | impl_block | null | null | null | 67 | null | HyperswitchVault | api::ExternalVaultCreate for | 0 | 0 | null | null |
// Module Structure
// File: crates/hyperswitch_connectors/src/connectors/thunes.rs
// Module: hyperswitch_connectors
// Public submodules:
pub mod transformers;
| crates/hyperswitch_connectors/src/connectors/thunes.rs | hyperswitch_connectors | module_structure | null | null | null | 38 | null | null | null | null | null | 1 | 0 |
// Struct: NewUserPassword
// File: crates/router/src/types/domain/user.rs
// Module: router
// Implementations: 1
// Traits: Deref
pub struct NewUserPassword | crates/router/src/types/domain/user.rs | router | struct_definition | NewUserPassword | 1 | [
"Deref"
] | 41 | null | null | null | null | null | null | null |
// File: crates/analytics/src/api_event/types.rs
// Module: analytics
use api_models::analytics::api_event::{ApiEventDimensions, ApiEventFilters};
use error_stack::ResultExt;
use crate::{
query::{QueryBuilder, QueryFilter, QueryResult, ToSql},
types::{AnalyticsCollection, AnalyticsDataSource},
};
impl<T> Que... | crates/analytics/src/api_event/types.rs | analytics | full_file | null | null | null | 264 | null | null | null | null | null | null | null |
// Implementation: impl Message for for FlatMapEvent
// File: crates/events/src/lib.rs
// Module: events
// Methods: 2 total (0 public)
impl Message for for FlatMapEvent | crates/events/src/lib.rs | events | impl_block | null | null | null | 42 | null | FlatMapEvent | Message for | 2 | 0 | null | null |
// File: crates/hyperswitch_domain_models/src/router_response_types/subscriptions.rs
// Module: hyperswitch_domain_models
// Public structs: 7
use common_enums::Currency;
use common_utils::{id_type, types::MinorUnit};
use time::PrimitiveDateTime;
#[derive(Debug, Clone)]
pub struct SubscriptionCreateResponse {
pub... | crates/hyperswitch_domain_models/src/router_response_types/subscriptions.rs | hyperswitch_domain_models | full_file | null | null | null | 653 | null | null | null | null | null | null | null |
// Implementation: impl webhooks::IncomingWebhook for for Novalnet
// File: crates/hyperswitch_connectors/src/connectors/novalnet.rs
// Module: hyperswitch_connectors
// Methods: 7 total (0 public)
impl webhooks::IncomingWebhook for for Novalnet | crates/hyperswitch_connectors/src/connectors/novalnet.rs | hyperswitch_connectors | impl_block | null | null | null | 64 | null | Novalnet | webhooks::IncomingWebhook for | 7 | 0 | null | null |
// Implementation: impl api::ConnectorAccessToken for for Worldpayxml
// File: crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::ConnectorAccessToken for for Worldpayxml | crates/hyperswitch_connectors/src/connectors/worldpayxml.rs | hyperswitch_connectors | impl_block | null | null | null | 60 | null | Worldpayxml | api::ConnectorAccessToken for | 0 | 0 | null | null |
// Function: user_from_email
// File: crates/router/src/routes/user.rs
// Module: router
pub fn user_from_email(
state: web::Data<AppState>,
req: HttpRequest,
json_payload: web::Json<user_api::UserFromEmailRequest>,
) -> HttpResponse | crates/router/src/routes/user.rs | router | function_signature | null | null | null | 61 | user_from_email | null | null | null | null | null | null |
// Implementation: impl PaymentAttemptRecordData
// File: crates/hyperswitch_domain_models/src/payments.rs
// Module: hyperswitch_domain_models
// Methods: 1 total (1 public)
impl PaymentAttemptRecordData | crates/hyperswitch_domain_models/src/payments.rs | hyperswitch_domain_models | impl_block | null | null | null | 47 | null | PaymentAttemptRecordData | null | 1 | 1 | null | null |
// Module Structure
// File: crates/router/src/routes/dummy_connector.rs
// Module: router
// Public submodules:
pub mod types;
| crates/router/src/routes/dummy_connector.rs | router | module_structure | null | null | null | 30 | null | null | null | null | null | 1 | 0 |
// Struct: BlikDetails
// File: crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct BlikDetails | crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs | hyperswitch_connectors | struct_definition | BlikDetails | 0 | [] | 49 | null | null | null | null | null | null | null |
// Struct: Attributes
// File: crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct Attributes | crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs | hyperswitch_connectors | struct_definition | Attributes | 0 | [] | 43 | null | null | null | null | null | null | null |
// Struct: MerchantAction
// File: crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct MerchantAction | crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs | hyperswitch_connectors | struct_definition | MerchantAction | 0 | [] | 45 | null | null | null | null | null | null | null |
// Implementation: impl GetPaymentMethodDetails for for DummyConnectorUpiType
// File: crates/router/src/routes/dummy_connector/types.rs
// Module: router
// Methods: 2 total (0 public)
impl GetPaymentMethodDetails for for DummyConnectorUpiType | crates/router/src/routes/dummy_connector/types.rs | router | impl_block | null | null | null | 56 | null | DummyConnectorUpiType | GetPaymentMethodDetails for | 2 | 0 | null | null |
// File: crates/router/tests/connectors/fiuu.rs
// Module: router
use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
use masking::Secret;
use router::types::{self, api, storage::enums};
use test_utils::connector_auth;
use crate::utils::{self, ConnectorActions};
#[derive(Clone, Copy)]
stru... | crates/router/tests/connectors/fiuu.rs | router | full_file | null | null | null | 2,938 | null | null | null | null | null | null | null |
// Implementation: impl Responder
// File: crates/router/src/analytics.rs
// Module: router
// Methods: 0 total (0 public)
impl Responder | crates/router/src/analytics.rs | router | impl_block | null | null | null | 35 | null | Responder | null | 0 | 0 | null | null |
// Struct: PaymentMethodIntentConfirmInternal
// File: crates/api_models/src/payment_methods.rs
// Module: api_models
// Implementations: 0
pub struct PaymentMethodIntentConfirmInternal | crates/api_models/src/payment_methods.rs | api_models | struct_definition | PaymentMethodIntentConfirmInternal | 0 | [] | 40 | null | null | null | null | null | null | null |
// Struct: TokenDetails
// File: crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct TokenDetails | crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs | hyperswitch_domain_models | struct_definition | TokenDetails | 0 | [] | 45 | null | null | null | null | null | null | null |
// Struct: SantanderValue
// File: crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct SantanderValue | crates/hyperswitch_connectors/src/connectors/santander/transformers.rs | hyperswitch_connectors | struct_definition | SantanderValue | 0 | [] | 48 | null | null | null | null | null | null | null |
// Implementation: impl MerchantConnectorAccountId
// File: crates/common_utils/src/id_type/merchant_connector_account.rs
// Module: common_utils
// Methods: 1 total (1 public)
impl MerchantConnectorAccountId | crates/common_utils/src/id_type/merchant_connector_account.rs | common_utils | impl_block | null | null | null | 43 | null | MerchantConnectorAccountId | null | 1 | 1 | null | null |
// Implementation: impl ConnectorCommon for for Nordea
// File: crates/hyperswitch_connectors/src/connectors/nordea.rs
// Module: hyperswitch_connectors
// Methods: 5 total (0 public)
impl ConnectorCommon for for Nordea | crates/hyperswitch_connectors/src/connectors/nordea.rs | hyperswitch_connectors | impl_block | null | null | null | 54 | null | Nordea | ConnectorCommon for | 5 | 0 | null | null |
// File: crates/router_env/build.rs
// Module: router_env
mod vergen {
include!("src/vergen.rs");
}
mod cargo_workspace {
include!("src/cargo_workspace.rs");
}
fn main() {
vergen::generate_cargo_instructions();
cargo_workspace::verify_cargo_metadata_format();
cargo_workspace::set_cargo_workspace... | crates/router_env/build.rs | router_env | full_file | null | null | null | 78 | null | null | null | null | null | null | null |
// Function: perform_integrity_check
// File: crates/router/src/core/refunds_v2.rs
// Module: router
pub fn perform_integrity_check<F>(
mut router_data: RouterData<F, types::RefundsData, types::RefundsResponseData>,
) -> RouterData<F, types::RefundsData, types::RefundsResponseData>
where
F: Debug + Clone + 'st... | crates/router/src/core/refunds_v2.rs | router | function_signature | null | null | null | 87 | perform_integrity_check | null | null | null | null | null | null |
// File: crates/router/src/core/mandate/helpers.rs
// Module: router
// Public functions: 2
// Public structs: 1
use api_models::payments as api_payments;
use common_enums::enums;
use common_types::payments as common_payments_types;
use common_utils::errors::CustomResult;
use diesel_models::Mandate;
use error_stack::R... | crates/router/src/core/mandate/helpers.rs | router | full_file | null | null | null | 870 | null | null | null | null | null | null | null |
// Function: find_by_merchant_reference_id_profile_id
// File: crates/diesel_models/src/query/payment_intent.rs
// Module: diesel_models
pub fn find_by_merchant_reference_id_profile_id(
conn: &PgPooledConn,
merchant_reference_id: &common_utils::id_type::PaymentReferenceId,
profile_id: &common_u... | crates/diesel_models/src/query/payment_intent.rs | diesel_models | function_signature | null | null | null | 88 | find_by_merchant_reference_id_profile_id | null | null | null | null | null | null |
// Implementation: impl ConnectorSpecifications for for Chargebee
// File: crates/hyperswitch_connectors/src/connectors/chargebee.rs
// Module: hyperswitch_connectors
// Methods: 2 total (0 public)
impl ConnectorSpecifications for for Chargebee | crates/hyperswitch_connectors/src/connectors/chargebee.rs | hyperswitch_connectors | impl_block | null | null | null | 54 | null | Chargebee | ConnectorSpecifications for | 2 | 0 | null | null |
// Implementation: impl Vault
// File: crates/router/src/core/payment_methods/vault.rs
// Module: router
// Methods: 5 total (0 public)
impl Vault | crates/router/src/core/payment_methods/vault.rs | router | impl_block | null | null | null | 36 | null | Vault | null | 5 | 0 | null | null |
// File: crates/router/src/core/fraud_check/operation/fraud_check_post.rs
// Module: router
// Public structs: 1
use async_trait::async_trait;
use common_enums::{CaptureMethod, FrmSuggestion};
use common_utils::ext_traits::Encode;
use hyperswitch_domain_models::payments::{
payment_attempt::PaymentAttemptUpdate, pa... | crates/router/src/core/fraud_check/operation/fraud_check_post.rs | router | full_file | null | null | null | 4,723 | null | null | null | null | null | null | null |
// Struct: RazorpayErrorMessage
// File: crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct RazorpayErrorMessage | crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs | hyperswitch_connectors | struct_definition | RazorpayErrorMessage | 0 | [] | 49 | null | null | null | null | null | null | null |
// Implementation: impl api::RefundSync for for Forte
// File: crates/hyperswitch_connectors/src/connectors/forte.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::RefundSync for for Forte | crates/hyperswitch_connectors/src/connectors/forte.rs | hyperswitch_connectors | impl_block | null | null | null | 60 | null | Forte | api::RefundSync for | 0 | 0 | null | null |
// Function: create_profile_acquirer
// File: crates/router/src/core/profile_acquirer.rs
// Module: router
pub fn create_profile_acquirer(
state: SessionState,
request: profile_acquirer::ProfileAcquirerCreate,
merchant_context: domain::MerchantContext,
) -> RouterResponse<profile_acquirer::ProfileAcquirerR... | crates/router/src/core/profile_acquirer.rs | router | function_signature | null | null | null | 73 | create_profile_acquirer | null | null | null | null | null | null |
// Function: start_process_tracker
// File: crates/scheduler/src/scheduler.rs
// Module: scheduler
pub fn start_process_tracker<
T: SchedulerAppState + 'static,
U: SchedulerSessionState + 'static,
F,
>(
state: &T,
scheduler_flow: SchedulerFlow,
scheduler_settings: Arc<SchedulerSettings>,
ch... | crates/scheduler/src/scheduler.rs | scheduler | function_signature | null | null | null | 84 | start_process_tracker | null | null | null | null | null | null |
// Function: toggle_specific_dynamic_routing
// File: crates/router/src/core/routing.rs
// Module: router
pub fn toggle_specific_dynamic_routing(
state: SessionState,
merchant_context: domain::MerchantContext,
feature_to_enable: routing::DynamicRoutingFeatures,
profile_id: common_utils::id_type::Profil... | crates/router/src/core/routing.rs | router | function_signature | null | null | null | 93 | toggle_specific_dynamic_routing | null | null | null | null | null | null |
// Struct: Globalpay
// File: crates/hyperswitch_connectors/src/connectors/globalpay.rs
// Module: hyperswitch_connectors
// Implementations: 19
// Traits: ConnectorCommon, ConnectorValidation, PaymentsCompleteAuthorize, api::ConnectorAccessToken, api::Payment, api::PaymentToken, api::MandateSetup, api::PaymentVoid, ap... | crates/hyperswitch_connectors/src/connectors/globalpay.rs | hyperswitch_connectors | struct_definition | Globalpay | 19 | [
"ConnectorCommon",
"ConnectorValidation",
"PaymentsCompleteAuthorize",
"api::ConnectorAccessToken",
"api::Payment",
"api::PaymentToken",
"api::MandateSetup",
"api::PaymentVoid",
"api::PaymentSync",
"api::PaymentCapture",
"api::PaymentSession",
"api::PaymentAuthorize",
"api::Refund",
"api::... | 130 | null | null | null | null | null | null | null |
// Trait: HealthCheckInterface
// File: crates/drainer/src/health_check.rs
// Module: drainer
pub trait HealthCheckInterface | crates/drainer/src/health_check.rs | drainer | trait_definition | null | null | null | 30 | null | null | HealthCheckInterface | null | null | null | null |
// File: crates/diesel_models/src/user_role.rs
// Module: diesel_models
// Public functions: 1
// Public structs: 3
use std::hash::Hash;
use common_enums::EntityType;
use common_utils::{consts, id_type};
use diesel::{AsChangeset, Identifiable, Insertable, Queryable, Selectable};
use time::PrimitiveDateTime;
use crat... | crates/diesel_models/src/user_role.rs | diesel_models | full_file | null | null | null | 1,070 | null | null | null | null | null | null | null |
// Struct: VoltAuthErrorResponse
// File: crates/hyperswitch_connectors/src/connectors/volt/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct VoltAuthErrorResponse | crates/hyperswitch_connectors/src/connectors/volt/transformers.rs | hyperswitch_connectors | struct_definition | VoltAuthErrorResponse | 0 | [] | 47 | null | null | null | null | null | null | null |
// Function: derive_to_encryption
// File: crates/router_derive/src/macros/to_encryptable.rs
// Module: router_derive
pub fn derive_to_encryption(
input: syn::DeriveInput,
) -> Result<proc_macro2::TokenStream, syn::Error> | crates/router_derive/src/macros/to_encryptable.rs | router_derive | function_signature | null | null | null | 61 | derive_to_encryption | null | null | null | null | null | null |
// Struct: Configs
// File: crates/router/src/routes/app.rs
// Module: router
// Implementations: 2
pub struct Configs | crates/router/src/routes/app.rs | router | struct_definition | Configs | 2 | [] | 32 | null | null | null | null | null | null | null |
// Implementation: impl CrmManagerConfig
// File: crates/external_services/src/crm.rs
// Module: external_services
// Methods: 2 total (1 public)
impl CrmManagerConfig | crates/external_services/src/crm.rs | external_services | impl_block | null | null | null | 42 | null | CrmManagerConfig | null | 2 | 1 | null | null |
// Struct: SingleChargeResponseData
// File: crates/hyperswitch_connectors/src/connectors/boku/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct SingleChargeResponseData | crates/hyperswitch_connectors/src/connectors/boku/transformers.rs | hyperswitch_connectors | struct_definition | SingleChargeResponseData | 0 | [] | 49 | null | null | null | null | null | null | null |
// Implementation: impl api::PaymentToken for for Placetopay
// File: crates/hyperswitch_connectors/src/connectors/placetopay.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentToken for for Placetopay | crates/hyperswitch_connectors/src/connectors/placetopay.rs | hyperswitch_connectors | impl_block | null | null | null | 63 | null | Placetopay | api::PaymentToken for | 0 | 0 | null | null |
// Function: get_metrics
// File: crates/analytics/src/disputes/core.rs
// Module: analytics
pub fn get_metrics(
pool: &AnalyticsProvider,
auth: &AuthInfo,
req: GetDisputeMetricRequest,
) -> AnalyticsResult<DisputesMetricsResponse<DisputeMetricsBucketResponse>> | crates/analytics/src/disputes/core.rs | analytics | function_signature | null | null | null | 69 | get_metrics | null | null | null | null | null | null |
// Function: construct_router_data_for_psync
// File: crates/router/src/core/payments/transformers.rs
// Module: router
pub fn construct_router_data_for_psync<'a>(
state: &'a SessionState,
payment_data: hyperswitch_domain_models::payments::PaymentStatusData<api::PSync>,
connector_id: &str,
merchant_con... | crates/router/src/core/payments/transformers.rs | router | function_signature | null | null | null | 154 | construct_router_data_for_psync | null | null | null | null | null | null |
// Function: cancel_status_from_transaction_state
// File: crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs
// Module: hyperswitch_connectors
pub fn cancel_status_from_transaction_state(getnet_status: GetnetPaymentStatus) -> AttemptStatus | crates/hyperswitch_connectors/src/connectors/getnet/transformers.rs | hyperswitch_connectors | function_signature | null | null | null | 56 | cancel_status_from_transaction_state | null | null | null | null | null | null |
// Implementation: impl api::PaymentCapture for for Deutschebank
// File: crates/hyperswitch_connectors/src/connectors/deutschebank.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentCapture for for Deutschebank | crates/hyperswitch_connectors/src/connectors/deutschebank.rs | hyperswitch_connectors | impl_block | null | null | null | 58 | null | Deutschebank | api::PaymentCapture for | 0 | 0 | null | null |
// Implementation: impl api::PaymentCapture for for Opennode
// File: crates/hyperswitch_connectors/src/connectors/opennode.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::PaymentCapture for for Opennode | crates/hyperswitch_connectors/src/connectors/opennode.rs | hyperswitch_connectors | impl_block | null | null | null | 59 | null | Opennode | api::PaymentCapture for | 0 | 0 | null | null |
// Struct: BamboraapacCaptureResponse
// File: crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct BamboraapacCaptureResponse | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | BamboraapacCaptureResponse | 0 | [] | 58 | null | null | null | null | null | null | null |
// Function: requires_defend_dispute
// File: crates/common_enums/src/connector_enums.rs
// Module: common_enums
pub fn requires_defend_dispute(self) -> bool | crates/common_enums/src/connector_enums.rs | common_enums | function_signature | null | null | null | 41 | requires_defend_dispute | null | null | null | null | null | null |
// Struct: CashtocodeAuthType
// File: crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct CashtocodeAuthType | crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs | hyperswitch_connectors | struct_definition | CashtocodeAuthType | 0 | [] | 53 | null | null | null | null | null | null | null |
// Struct: BlocklistResponse
// File: crates/api_models/src/blocklist.rs
// Module: api_models
// Implementations: 1
// Traits: ApiEventMetric
pub struct BlocklistResponse | crates/api_models/src/blocklist.rs | api_models | struct_definition | BlocklistResponse | 1 | [
"ApiEventMetric"
] | 43 | null | null | null | null | null | null | null |
// Implementation: impl Responder
// File: crates/router/src/routes/payments.rs
// Module: router
// Methods: 0 total (0 public)
impl Responder | crates/router/src/routes/payments.rs | router | impl_block | null | null | null | 36 | null | Responder | null | 0 | 0 | null | null |
// Implementation: impl api::RefundSync for for Elavon
// File: crates/hyperswitch_connectors/src/connectors/elavon.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::RefundSync for for Elavon | crates/hyperswitch_connectors/src/connectors/elavon.rs | hyperswitch_connectors | impl_block | null | null | null | 62 | null | Elavon | api::RefundSync for | 0 | 0 | null | null |
// Function: config_key_retrieve
// File: crates/router/src/routes/configs.rs
// Module: router
pub fn config_key_retrieve(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
) -> impl Responder | crates/router/src/routes/configs.rs | router | function_signature | null | null | null | 58 | config_key_retrieve | null | null | null | null | null | null |
// File: crates/hyperswitch_domain_models/src/authentication.rs
// Module: hyperswitch_domain_models
// Public structs: 2
use common_utils::{
crypto::Encryptable, encryption::Encryption, errors::CustomResult, pii,
types::keymanager::ToEncryptable,
};
use masking::Secret;
use rustc_hash::FxHashMap;
use serde_js... | crates/hyperswitch_domain_models/src/authentication.rs | hyperswitch_domain_models | full_file | null | null | null | 795 | null | null | null | null | null | null | null |
Box::pin(payments_operation_core::<api::PSync, _, _, _, _>(
state,
req_state,
merchant_context,
&profile,
operation,
payment_sync_request,
get_tracker_response,
call_connector_acti... | crates/router/src/core/payments.rs#chunk3 | router | chunk | null | null | null | 8,190 | null | null | null | null | null | null | null |
// Function: update_theme
// File: crates/router/src/routes/user/theme.rs
// Module: router
pub fn update_theme(
state: web::Data<AppState>,
req: HttpRequest,
path: web::Path<String>,
payload: web::Json<theme_api::UpdateThemeRequest>,
) -> HttpResponse | crates/router/src/routes/user/theme.rs | router | function_signature | null | null | null | 66 | update_theme | null | null | null | null | null | null |
// Function: find_by_id
// File: crates/diesel_models/src/query/payment_attempt.rs
// Module: diesel_models
pub fn find_by_id(
conn: &PgPooledConn,
id: &common_utils::id_type::GlobalAttemptId,
) -> StorageResult<Self> | crates/diesel_models/src/query/payment_attempt.rs | diesel_models | function_signature | null | null | null | 62 | find_by_id | null | null | null | null | null | null |
// Struct: SubmitSingleRefundResult
// File: crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct SubmitSingleRefundResult | crates/hyperswitch_connectors/src/connectors/bamboraapac/transformers.rs | hyperswitch_connectors | struct_definition | SubmitSingleRefundResult | 0 | [] | 54 | null | null | null | null | null | null | null |
// Struct: PazeDecryptedData
// File: crates/hyperswitch_domain_models/src/router_data.rs
// Module: hyperswitch_domain_models
// Implementations: 0
pub struct PazeDecryptedData | crates/hyperswitch_domain_models/src/router_data.rs | hyperswitch_domain_models | struct_definition | PazeDecryptedData | 0 | [] | 46 | null | null | null | null | null | null | null |
// Implementation: impl api::MandateSetup for for Zen
// File: crates/hyperswitch_connectors/src/connectors/zen.rs
// Module: hyperswitch_connectors
// Methods: 0 total (0 public)
impl api::MandateSetup for for Zen | crates/hyperswitch_connectors/src/connectors/zen.rs | hyperswitch_connectors | impl_block | null | null | null | 59 | null | Zen | api::MandateSetup for | 0 | 0 | null | null |
// Function: upload_file_to_theme_bucket
// File: crates/router/src/utils/user/theme.rs
// Module: router
pub fn upload_file_to_theme_bucket(
state: &SessionState,
path: &PathBuf,
data: Vec<u8>,
) -> UserResult<()> | crates/router/src/utils/user/theme.rs | router | function_signature | null | null | null | 59 | upload_file_to_theme_bucket | null | null | null | null | null | null |
// Struct: BamboraThreedsContinueRequest
// File: crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs
// Module: hyperswitch_connectors
// Implementations: 0
pub struct BamboraThreedsContinueRequest | crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs | hyperswitch_connectors | struct_definition | BamboraThreedsContinueRequest | 0 | [] | 58 | null | null | null | null | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.