text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
// file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permissions}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/profiles.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::perm...
ast_fragments
// file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn payment_link_status( state: we...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn initiate_secure_pay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn initiate_payment_li...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn payment_link_status...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn payment_link_retrie...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn payments_link_list(...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/payment_link.rs | crate: router use actix_web::{web, Responder}; use router_env::{instrument, tracing, Flow}; use crate::{ core::{api_locking, payment_link::*}, services::{api, authentication as auth}, AppState, }; pub async fn payment_link_retrie...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
// file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permissions::Permissio...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/api_keys.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{api_keys, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/currency.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::Flow; use crate::{ core::{api_locking, currency}, routes::AppState, services::{api, authentication as auth}, }; pub async fn convert_forex( state: web...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/currency.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::Flow; use crate::{ core::{api_locking, currency}, routes::AppState, services::{api, authentication as auth}, }; pub async fn retrieve_forex(state: web::Da...
ast_fragments
// file: hyperswitch/crates/router/src/routes/currency.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::Flow; use crate::{ core::{api_locking, currency}, routes::AppState, services::{api, authentication as auth}, }; pub async fn retrieve_forex(state: web::Data<AppState>, r...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, conditional_config, routing, surcharge_decision_config}, routes::AppState, se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, conditional_config, routing, surcharge_decision_config}, routes::AppState, se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, conditional_config, routing, surcharge_decision_config}, routes::AppState, se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, conditional_config, routing, surcharge_decision_config}, routes::AppState, se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
// file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, conditional_config...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/routing.rs | crate: router use actix_web::{web, HttpRequest, Responder}; use api_models::{enums, routing as routing_types, routing::RoutingRetrieveQuery}; use router_env::{ tracing::{self, instrument}, Flow, }; use crate::{ core::{api_locking, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use std::{collections::HashMap, sync::Arc}; use common_utils::crypto::Blake3; use common_utils::id_type; use external_services::email::{ no_email::NoEmailClient, ses::AwsSes, smtp::SmtpServer, EmailClientConfigs, EmailService, }; us...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use std::{collections::HashMap, sync::Arc}; use storage_impl::{config::TenantConfig, redis::RedisStore, MockDb}; pub use crate::analytics::opensearch::OpenSearchClient; pub use crate::{ configs::settings, db::{ AccountsS...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router self.event_handler.clone() } fn get_request_id(&self) -> Option<String> { self.api_client.get_request_id() } fn add_request_id(&mut self, request_id: RequestId) { self.api_client.add_request_id(re...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router fn get_request_id(&self) -> Option<String> { self.api_client.get_request_id() } } impl AsRef<Self> for AppState { fn as_ref(&self) -> &Self { self } } #[cfg(feature = "email")] pub async fn create_email...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use actix_web::{web, Scope}; use storage_impl::{config::TenantConfig, redis::RedisStore, MockDb}; use super::{apple_pay_certificates_migration, blocklist, payment_link, webhook_events}; pub use crate::analytics::opensearch::OpenSearchCl...
ast_fragments
// file: hyperswitch/crates/router/src/routes/app.rs | crate: router use actix_web::{web, Scope}; use super::{ admin, api_keys, cache::*, connector_onboarding, disputes, files, gsm, health::*, profiles, relay, user, user_role, }; pub use crate::analytics::opensearch::OpenSearchClient; pub use crate::{ confi...
ast_fragments
// file: hyperswitch/crates/router/src/routes/app.rs | crate: router use actix_web::{web, Scope}; use super::{apple_pay_certificates_migration, blocklist, payment_link, webhook_events}; pub use crate::analytics::opensearch::OpenSearchClient; pub use crate::{ configs::settings, db::{ AccountsStorageInter...
ast_fragments
// file: hyperswitch/crates/router/src/routes/app.rs | crate: router use actix_web::{web, Scope}; use super::{ admin, api_keys, cache::*, connector_onboarding, disputes, files, gsm, health::*, profiles, relay, user, user_role, }; pub use crate::analytics::opensearch::OpenSearchClient; pub use crate::{ confi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use hyperswitch_interfaces::{ encryption_interface::EncryptionManagementInterface, secrets_interface::secret_state::{RawSecret, SecuredSecret}, }; use tokio::sync::oneshot; use self::settings::Tenant; pub use crate::analytics::o...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use external_services::email::{ no_email::NoEmailClient, ses::AwsSes, smtp::SmtpServer, EmailClientConfigs, EmailService, }; use hyperswitch_interfaces::{ encryption_interface::EncryptionManagementInterface, secrets_interfac...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use self::settings::Tenant; fn as_ref(&self) -> &Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use self::settings::Tenant; fn add_flow_name(&mut self, flow_name: String) { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use router_env::tracing_actix_web::RequestId; use self::settings::Tenant; fn add_request_id(&mut self, request_id: RequestId) { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use self::settings::Tenant; pub use crate::{ configs::settings, db::{ AccountsStorageInterface, CommonStorageInterface, GlobalStorageInterface, StorageImpl, StorageInterface, }, events::EventsHandler, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use std::{collections::HashMap, sync::Arc}; use external_services::email::{ no_email::NoEmailClient, ses::AwsSes, smtp::SmtpServer, EmailClientConfigs, EmailService, }; use self::settings::Tenant; fn email_client(&self) -> Arc<Box<d...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use hyperswitch_interfaces::{ encryption_interface::EncryptionManagementInterface, secrets_interface::secret_state::{RawSecret, SecuredSecret}, }; use self::settings::Tenant; pub use crate::{ configs::settings, db::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use common_utils::id_type; use self::settings::Tenant; fn get_tenants(&self) -> Vec<id_type::TenantId> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use self::settings::Tenant; fn session_state(&self) -> SessionState { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use self::settings::Tenant; pub use crate::{ configs::settings, db::{ AccountsStorageInterface, CommonStorageInterface, GlobalStorageInterface, StorageImpl, StorageInterface, }, events::EventsHandler, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use external_services::{ file_storage::FileStorageInterface, grpc_client::{GrpcClients, GrpcHeaders}, }; use self::settings::Tenant; pub use crate::analytics::opensearch::OpenSearchClient; pub use crate::{ configs::settings,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use self::settings::Tenant; pub use crate::analytics::opensearch::OpenSearchClient; pub use crate::{ configs::settings, db::{ AccountsStorageInterface, CommonStorageInterface, GlobalStorageInterface, StorageImpl, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use scheduler::SchedulerInterface; use self::settings::Tenant; fn get_db(&self) -> Box<dyn SchedulerInterface> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use std::{collections::HashMap, sync::Arc}; use external_services::email::{ no_email::NoEmailClient, ses::AwsSes, smtp::SmtpServer, EmailClientConfigs, EmailService, }; use external_services::{ file_storage::FileStorageInterface...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/app.rs | crate: router use actix_web::{web, Scope}; use external_services::email::{ no_email::NoEmailClient, ses::AwsSes, smtp::SmtpServer, EmailClientConfigs, EmailService, }; use super::dummy_connector::*; use super::{ admin, api_keys, cache::*, con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
// file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permissions::Permissio...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/routes/admin.rs | crate: router use actix_web::{web, HttpRequest, HttpResponse}; use router_env::{instrument, tracing, Flow}; use super::app::AppState; use crate::{ core::{admin::*, api_locking}, services::{api, authentication as auth, authorization::permiss...
ast_fragments