pub enum AnyChainConfig {
Cosmos(CosmosChainConfig),
Evm(EvmChainConfig),
}Variants§
Cosmos(CosmosChainConfig)
Evm(EvmChainConfig)
Implementations§
Source§impl AnyChainConfig
impl AnyChainConfig
pub fn chain_id(&self) -> &ChainKeyId
Source§impl AnyChainConfig
impl AnyChainConfig
pub fn to_cosmos_config(&self) -> Result<CosmosChainConfig, ChainConfigError>
pub fn to_evm_config(&self) -> Result<EvmChainConfig, ChainConfigError>
pub fn to_layer_climb_config(&self) -> Result<ChainConfig, ChainConfigError>
pub fn from_layer_climb_config( config: ChainConfig, ) -> Result<Self, ChainConfigError>
Trait Implementations§
Source§impl Clone for AnyChainConfig
impl Clone for AnyChainConfig
Source§fn clone(&self) -> AnyChainConfig
fn clone(&self) -> AnyChainConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for AnyChainConfig
impl ComposeSchema for AnyChainConfig
Source§impl Debug for AnyChainConfig
impl Debug for AnyChainConfig
Source§impl<'de> Deserialize<'de> for AnyChainConfig
impl<'de> Deserialize<'de> for AnyChainConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&AnyChainConfig> for ChainKey
impl From<&AnyChainConfig> for ChainKey
Source§fn from(config: &AnyChainConfig) -> Self
fn from(config: &AnyChainConfig) -> Self
Converts to this type from the input type.
Source§impl From<AnyChainConfig> for ChainKey
impl From<AnyChainConfig> for ChainKey
Source§fn from(config: AnyChainConfig) -> Self
fn from(config: AnyChainConfig) -> Self
Converts to this type from the input type.
Source§impl From<CosmosChainConfig> for AnyChainConfig
impl From<CosmosChainConfig> for AnyChainConfig
Source§fn from(config: CosmosChainConfig) -> Self
fn from(config: CosmosChainConfig) -> Self
Converts to this type from the input type.
Source§impl From<EvmChainConfig> for AnyChainConfig
impl From<EvmChainConfig> for AnyChainConfig
Source§fn from(config: EvmChainConfig) -> Self
fn from(config: EvmChainConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for AnyChainConfig
impl Serialize for AnyChainConfig
Source§impl ToSchema for AnyChainConfig
impl ToSchema for AnyChainConfig
Source§impl TryFrom<AnyChainConfig> for CosmosChainConfig
impl TryFrom<AnyChainConfig> for CosmosChainConfig
Source§type Error = ChainConfigError
type Error = ChainConfigError
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyChainConfig> for EvmChainConfig
impl TryFrom<AnyChainConfig> for EvmChainConfig
Source§type Error = ChainConfigError
type Error = ChainConfigError
The type returned in the event of a conversion error.
Source§impl TryFrom<AnyChainConfig> for ChainConfig
impl TryFrom<AnyChainConfig> for ChainConfig
Source§type Error = ChainConfigError
type Error = ChainConfigError
The type returned in the event of a conversion error.
Source§impl TryFrom<ChainConfig> for AnyChainConfig
impl TryFrom<ChainConfig> for AnyChainConfig
Source§type Error = ChainConfigError
type Error = ChainConfigError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for AnyChainConfig
impl RefUnwindSafe for AnyChainConfig
impl Send for AnyChainConfig
impl Sync for AnyChainConfig
impl Unpin for AnyChainConfig
impl UnsafeUnpin for AnyChainConfig
impl UnwindSafe for AnyChainConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more