Struct WebChainConfig
pub struct WebChainConfig {
pub chain_id: ChainId,
pub rpc_endpoint: Option<String>,
pub grpc_endpoint: Option<String>,
pub grpc_web_endpoint: Option<String>,
pub rest_endpoint: Option<String>,
pub gas_price: f32,
pub gas_denom: String,
pub address_kind: AddrKind,
}
Fields§
§chain_id: ChainId
§rpc_endpoint: Option<String>
§grpc_endpoint: Option<String>
§grpc_web_endpoint: Option<String>
§rest_endpoint: Option<String>
§gas_price: f32
§gas_denom: String
§address_kind: AddrKind
Trait Implementations§
§impl Clone for WebChainConfig
impl Clone for WebChainConfig
§fn clone(&self) -> WebChainConfig
fn clone(&self) -> WebChainConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for WebChainConfig
impl Debug for WebChainConfig
§impl<'de> Deserialize<'de> for WebChainConfig
impl<'de> Deserialize<'de> for WebChainConfig
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WebChainConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WebChainConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl From<ChainConfig> for WebChainConfig
This implementation uses the rpc endpoint as the rest endpoint
but changes the port to 1317
impl From<ChainConfig> for WebChainConfig
This implementation uses the rpc endpoint as the rest endpoint but changes the port to 1317
§fn from(chain_config: ChainConfig) -> WebChainConfig
fn from(chain_config: ChainConfig) -> WebChainConfig
Converts to this type from the input type.
§impl From<WebChainConfig> for ChainConfig
impl From<WebChainConfig> for ChainConfig
§fn from(web_chain_config: WebChainConfig) -> ChainConfig
fn from(web_chain_config: WebChainConfig) -> ChainConfig
Converts to this type from the input type.
§impl Serialize for WebChainConfig
impl Serialize for WebChainConfig
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for WebChainConfig
impl RefUnwindSafe for WebChainConfig
impl Send for WebChainConfig
impl Sync for WebChainConfig
impl Unpin for WebChainConfig
impl UnwindSafe for WebChainConfig
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moreSource§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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].