pub struct FactoryConfig {
pub factory_address: String,
pub creation_event_topic0: String,
pub child_address_field: String,
pub name: Option<String>,
}Expand description
Configuration for a single factory contract.
Describes the factory’s address, which event signals child creation,
and which field in the event’s fields_json contains the new child address.
Fields§
§factory_address: StringAddress of the factory contract (lowercase hex, 0x…).
creation_event_topic0: StringEvent signature hash (topic0) that signals a child contract creation.
For example, Uniswap V3’s PoolCreated topic0.
child_address_field: StringField name within fields_json that contains the child contract address.
Supports dot-separated paths for nested fields (e.g. "args.pool").
name: Option<String>Optional human-readable name for this factory (e.g. "Uniswap V3 Factory").
Trait Implementations§
Source§impl Clone for FactoryConfig
impl Clone for FactoryConfig
Source§fn clone(&self) -> FactoryConfig
fn clone(&self) -> FactoryConfig
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 FactoryConfig
impl Debug for FactoryConfig
Source§impl<'de> Deserialize<'de> for FactoryConfig
impl<'de> Deserialize<'de> for FactoryConfig
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 FactoryConfig
impl RefUnwindSafe for FactoryConfig
impl Send for FactoryConfig
impl Sync for FactoryConfig
impl Unpin for FactoryConfig
impl UnsafeUnpin for FactoryConfig
impl UnwindSafe for FactoryConfig
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