pub struct SchemeConfig {
pub enabled: bool,
pub id: String,
pub chains: ChainIdPattern,
pub config: Option<Value>,
}Expand description
Configuration for a specific scheme.
Each scheme entry specifies which scheme to use and which chains it applies to.
Fields§
§enabled: boolWhether this scheme is enabled (defaults to true).
id: StringThe scheme id (e.g., “v1-eip155-exact”).
chains: ChainIdPatternThe chain pattern this scheme applies to (e.g., “eip155:84532”, “eip155:*”, “eip155:{1,8453}”).
config: Option<Value>Scheme-specific configuration (optional).
Trait Implementations§
Source§impl Clone for SchemeConfig
impl Clone for SchemeConfig
Source§fn clone(&self) -> SchemeConfig
fn clone(&self) -> SchemeConfig
Returns a duplicate 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 moreSource§impl Debug for SchemeConfig
impl Debug for SchemeConfig
Source§impl<'de> Deserialize<'de> for SchemeConfig
impl<'de> Deserialize<'de> for SchemeConfig
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
Auto Trait Implementations§
impl Freeze for SchemeConfig
impl RefUnwindSafe for SchemeConfig
impl Send for SchemeConfig
impl Sync for SchemeConfig
impl Unpin for SchemeConfig
impl UnwindSafe for SchemeConfig
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