pub struct CreateVNetRequest {
pub slug: String,
pub display_name: String,
pub fork_config: ForkConfig,
pub virtual_network_config: VirtualNetworkConfig,
pub sync_state_config: Option<SyncStateConfig>,
pub explorer_page_config: Option<ExplorerPageConfig>,
}Expand description
Request to create a new Virtual TestNet
Fields§
§slug: StringUnique slug for the VNet
display_name: StringDisplay name
fork_config: ForkConfigFork configuration
virtual_network_config: VirtualNetworkConfigVirtual network configuration
sync_state_config: Option<SyncStateConfig>State sync configuration
explorer_page_config: Option<ExplorerPageConfig>Explorer page configuration
Implementations§
Source§impl CreateVNetRequest
impl CreateVNetRequest
Sourcepub fn new(
slug: impl Into<String>,
display_name: impl Into<String>,
network_id: u64,
) -> Self
pub fn new( slug: impl Into<String>, display_name: impl Into<String>, network_id: u64, ) -> Self
Create a new VNet request with minimal configuration
Sourcepub fn block_number(self, block: u64) -> Self
pub fn block_number(self, block: u64) -> Self
Fork from a specific block
Sourcepub fn base_fee_per_gas(self, fee: u64) -> Self
pub fn base_fee_per_gas(self, fee: u64) -> Self
Set base fee per gas
Sourcepub fn sync_state(self, enabled: bool) -> Self
pub fn sync_state(self, enabled: bool) -> Self
Enable state sync
Sourcepub fn explorer_page(self, enabled: bool, verification_visibility: &str) -> Self
pub fn explorer_page(self, enabled: bool, verification_visibility: &str) -> Self
Enable explorer page
Trait Implementations§
Source§impl Clone for CreateVNetRequest
impl Clone for CreateVNetRequest
Source§fn clone(&self) -> CreateVNetRequest
fn clone(&self) -> CreateVNetRequest
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 CreateVNetRequest
impl Debug for CreateVNetRequest
Auto Trait Implementations§
impl Freeze for CreateVNetRequest
impl RefUnwindSafe for CreateVNetRequest
impl Send for CreateVNetRequest
impl Sync for CreateVNetRequest
impl Unpin for CreateVNetRequest
impl UnwindSafe for CreateVNetRequest
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