text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn as_bool(self) -> bool { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums fn from(relay_status: RelayStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums fn from(refund_status: RefundStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums fn from(connector_type: ConnectorType) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums fn from(role_scope: RoleScope) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_failed(self) -> bool ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_terminal_status(self)...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_separate_version_call...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_for_internal_use_only...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn should_check_for_custome...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; /// Indicates whether the s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; /// Indicates whether the p...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn number_of_digits_after_d...
ast_fragments
// file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums use std::num::{ParseFloatError, TryFromIntError}; pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationErro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums use std::num::{ParseFloatError, TryFromIntError}; pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums use std::num::{ParseFloatError, TryFromIntError}; pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums use std::num::{ParseFloatError, TryFromIntError}; pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums use std::num::{ParseFloatError, TryFromIntError}; fn from(err: std::io::Error) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_connection_closed_bef...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_upstream_timeout(&sel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn to_display_name(&self) -...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_three_decimal_currenc...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_four_decimal_currency...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn is_zero_decimal_currency...
ast_fragments
// file: hyperswitch/crates/common_enums/src/enums.rs | crate: common_enums pub use accounts::MerchantProductType; pub use payments::ProductType; pub use ui::*; pub use super::connector_enums::RoutableConnectors; pub type ApplicationResult<T> = Result<T, ApplicationError>; pub fn iso_4217(self) -> &'static str { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums/ui.rs | crate: common_enums use serde::{de::Visitor, Deserialize, Deserializer, Serialize}; fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: serde::ser::Serializer, { { Self::Variants(variant) => serializer.serial...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums/ui.rs | crate: common_enums use serde::{de::Visitor, Deserialize, Deserializer, Serialize}; fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: serde::ser::Serializer, { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/common_enums/src/enums/ui.rs | crate: common_enums use serde::{de::Visitor, Deserialize, Deserializer, Serialize}; fn visit_str<E>(self, value: &str) -> Result<ElementSize, E> where E: serde::de::Error, { {<|fim_suffix|> <|fim_middle|> }...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph fn from(value: Relation) -> Self { { Relation::Positive => Self::Positive,<|fim_suffix|> <|fim_middle|> Relation::Negative => Self::Negative, } }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph use rustc_hash::{FxHashMap, FxHashSet}; pub fn new() -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph pub fn new(identifier: String) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph pub fn get_resolved_relation(prev_relation: Self, curr_relation: Self) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph fn from(value: Relation) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph use std::{ any::Any, fmt, hash, ops::{Deref, DerefMut}, sync::Arc, }; pub fn get_resolved_strength(prev_strength: Self, curr_strength: Self) -> Self { <|fim_suffix|> <|fim_middle|> ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph fn from(value: V) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs | crate: hyperswitch_constraint_graph use crate::{dense_map::impl_entity, error::AnalysisTrace}; pub(crate) fn new(node_type: NodeType<V>) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInf...
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use rustc_hash::{FxHashMap, FxHashSet}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleChec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdenti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdenti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdenti...
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Mem...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdenti...
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Mem...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdenti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdentifier, DomainInfo, Edge, Edge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; use crate::{ builder, dense_map::DenseMap, error::{self, AnalysisTrace, GraphError}, types::{ CheckingContext, CycleCheck, DomainId, DomainIdenti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/error.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; pub fn get_analysis_trace(self) -> Result<Weak<AnalysisTrace<V>>, Self> { { Self::AnalysisError(trace) => Ok(trace),<|fim_suffix|> <|fim_middle|> _ => Err(self), } }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/error.rs | crate: hyperswitch_constraint_graph use std::sync::{Arc, Weak}; pub fn get_analysis_trace(self) -> Result<Weak<AnalysisTrace<V>>, Self> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn contains_key(&self, key: K) -> bool { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn push(&mut self, elem: V) -> K { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; fn from_iter<T>(iter: T) -> Self where T: IntoIterator<Item = V>, { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph fn into_iter(self) -> Self::IntoIter { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph fn next(&mut self) -> Option<Self::Item> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; fn new(iter: vec::IntoIter<V>) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph fn next(&mut self) -> Option<Self::Item> { self.inner.next().map(|(id, val)| (K::with_id(id), val)) }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; fn new(iter: slice::IterMut<'a, V>) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; fn new(iter: slice::Iter<'a, V>) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; fn new(range: ops::Range<usize>) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_map().entries(self.iter()).finish() }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn iter_mut(&mut self) -> IterMut<'_, K, V> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; pub(crate) use impl_entity; pub fn iter(&self) -> Iter<'_, K, V> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; pub(crate) use impl_entity; pub fn into_values(self) -> vec::IntoIter<V> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; pub(crate) use impl_entity; pub fn values_mut(&mut self) -> slice::IterMut<'_, V> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; pub(crate) use impl_entity; pub fn values(&self) -> slice::Iter<'_, V> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn into_keys(self) -> Keys<K> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn keys(&self) -> Keys<K> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn contains_key(&self, key: K) -> bool { key.get_id() < self.data.len() }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn get_mut(&mut self, idx: K) -> Option<&mut V> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn get(&self, idx: K) -> Option<&V> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph pub(crate) use impl_entity; pub fn push(&mut self, elem: V) -> K { let curr_len = self.data.len(); self.data.push(elem); K::with_id(curr_len) }
ast_fragments
// file: hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs | crate: hyperswitch_constraint_graph use std::{fmt, iter, marker::PhantomData, ops, slice, vec}; pub(crate) use impl_entity; pub fn new() -> Self { Self { data: Vec::new(), _marker: PhantomData, } }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use std::sync::Arc; use rustc_hash::{FxHashMap, FxHashSet}; use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifie...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use std::sync::Arc; use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, N...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use std::sync::Arc; use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, N...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use std::sync::Arc; use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, N...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_constraint_graph/src/builder.rs | crate: hyperswitch_constraint_graph use crate::{ dense_map::DenseMap, error::GraphError, graph::ConstraintGraph, types::{ DomainId, DomainIdentifier, DomainInfo, Edge, EdgeId, Metadata, Node, NodeId, NodeTyp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/response_modifier.rs | crate: connector_configs use crate::common_config::{ CardProvider, ConnectorApiIntegrationPayload, DashboardPaymentMethodPayload, DashboardRequestPayload, Provider, }; pub fn get_transformed_response_payload(response: Self) ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/response_modifier.rs | crate: connector_configs use crate::common_config::{ CardProvider, ConnectorApiIntegrationPayload, DashboardPaymentMethodPayload, DashboardRequestPayload, Provider, }; pub fn get_transformed_response_payload(response: Self) ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/connector.rs | crate: connector_configs use api_models::{ enums::{AuthenticationConnectors, Connector, PmAuthConnectors, TaxConnectors}, payments, }; pub fn get_authentication_connector_config( connector: AuthenticationConnectors, ) ->...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/connector.rs | crate: connector_configs use api_models::enums::PayoutConnectors; pub fn get_payout_connector_config( connector: PayoutConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { { PayoutConnectors::Adyen => Ok(connector_data...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/connector.rs | crate: connector_configs use api_models::{ enums::{AuthenticationConnectors, Connector, PmAuthConnectors, TaxConnectors}, payments, }; pub fn get_pm_authentication_processor_config( connector: PmAuthConnectors, ) -> Resu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/connector.rs | crate: connector_configs use api_models::{ enums::{AuthenticationConnectors, Connector, PmAuthConnectors, TaxConnectors}, payments, }; pub fn get_tax_processor_config( connector: TaxConnectors, ) -> Result<Option<Connect...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/connector_configs/src/connector.rs | crate: connector_configs use api_models::{ enums::{AuthenticationConnectors, Connector, PmAuthConnectors, TaxConnectors}, payments, }; pub fn get_authentication_connector_config( connector: AuthenticationConnectors, ) ->...
ast_fragments
// file: hyperswitch/crates/connector_configs/src/connector.rs | crate: connector_configs use api_models::enums::PayoutConnectors; pub fn get_payout_connector_config( connector: PayoutConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match conn...
ast_fragments