pub struct CosmosChainConfig {
pub chain_id: ChainKeyId,
pub bech32_prefix: String,
pub rpc_endpoint: Option<String>,
pub grpc_endpoint: Option<String>,
pub gas_price: f32,
pub gas_denom: String,
pub faucet_endpoint: Option<String>,
}Fields§
§chain_id: ChainKeyId§bech32_prefix: String§rpc_endpoint: Option<String>§grpc_endpoint: Option<String>§gas_price: f32§gas_denom: String§faucet_endpoint: Option<String>Implementations§
Source§impl CosmosChainConfig
impl CosmosChainConfig
pub fn to_chain_config(&self) -> ChainConfig
pub fn from_chain_config(config: ChainConfig) -> Result<Self, ChainConfigError>
Trait Implementations§
Source§impl Clone for CosmosChainConfig
impl Clone for CosmosChainConfig
Source§fn clone(&self) -> CosmosChainConfig
fn clone(&self) -> CosmosChainConfig
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 CosmosChainConfig
impl ComposeSchema for CosmosChainConfig
Source§impl Debug for CosmosChainConfig
impl Debug for CosmosChainConfig
Source§impl<'de> Deserialize<'de> for CosmosChainConfig
impl<'de> Deserialize<'de> for CosmosChainConfig
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<&CosmosChainConfig> for ChainKey
impl From<&CosmosChainConfig> for ChainKey
Source§fn from(config: &CosmosChainConfig) -> Self
fn from(config: &CosmosChainConfig) -> Self
Converts to this type from the input type.
Source§impl From<CosmosChainConfig> for ChainKey
impl From<CosmosChainConfig> for ChainKey
Source§fn from(config: CosmosChainConfig) -> Self
fn from(config: CosmosChainConfig) -> 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<CosmosChainConfig> for ChainConfig
impl From<CosmosChainConfig> for ChainConfig
Source§fn from(config: CosmosChainConfig) -> Self
fn from(config: CosmosChainConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for CosmosChainConfig
impl Serialize for CosmosChainConfig
Source§impl ToSchema for CosmosChainConfig
impl ToSchema for CosmosChainConfig
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<ChainConfig> for CosmosChainConfig
impl TryFrom<ChainConfig> for CosmosChainConfig
Source§type Error = ChainConfigError
type Error = ChainConfigError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CosmosChainConfig
impl RefUnwindSafe for CosmosChainConfig
impl Send for CosmosChainConfig
impl Sync for CosmosChainConfig
impl Unpin for CosmosChainConfig
impl UnsafeUnpin for CosmosChainConfig
impl UnwindSafe for CosmosChainConfig
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