pub struct SimnetConfig {Show 14 fields
pub offline_mode: bool,
pub remote_rpc_url: Option<String>,
pub slot_time: u64,
pub block_production_mode: BlockProductionMode,
pub airdrop_addresses: Vec<Pubkey>,
pub airdrop_token_amount: u64,
pub expiry: Option<u64>,
pub instruction_profiling_enabled: bool,
pub max_profiles: usize,
pub log_bytes_limit: Option<usize>,
pub feature_config: SvmFeatureConfig,
pub skip_signature_verification: bool,
pub surfnet_id: String,
pub snapshot: BTreeMap<String, Option<AccountSnapshot>>,
}Fields§
§offline_mode: bool§remote_rpc_url: Option<String>§slot_time: u64§block_production_mode: BlockProductionMode§airdrop_addresses: Vec<Pubkey>§airdrop_token_amount: u64§expiry: Option<u64>§instruction_profiling_enabled: bool§max_profiles: usize§log_bytes_limit: Option<usize>§feature_config: SvmFeatureConfig§skip_signature_verification: bool§surfnet_id: StringUnique identifier for this surfnet instance. Used to isolate database storage when multiple surfnets share the same database. Defaults to “default”.
snapshot: BTreeMap<String, Option<AccountSnapshot>>Snapshot accounts to preload at startup. Keys are pubkey strings, values can be None to fetch from remote RPC.
Implementations§
Source§impl SimnetConfig
impl SimnetConfig
Sourcepub fn get_sanitized_datasource_url(&self) -> Option<String>
pub fn get_sanitized_datasource_url(&self) -> Option<String>
Returns a sanitized version of the datasource URL safe for display. Only returns scheme and host (e.g., “https://example.com”) to prevent leaking API keys in paths or query parameters.
Trait Implementations§
Source§impl Clone for SimnetConfig
impl Clone for SimnetConfig
Source§fn clone(&self) -> SimnetConfig
fn clone(&self) -> SimnetConfig
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 SimnetConfig
impl Debug for SimnetConfig
Auto Trait Implementations§
impl Freeze for SimnetConfig
impl RefUnwindSafe for SimnetConfig
impl Send for SimnetConfig
impl Sync for SimnetConfig
impl Unpin for SimnetConfig
impl UnsafeUnpin for SimnetConfig
impl UnwindSafe for SimnetConfig
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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