pub struct NetworkBuilder { /* private fields */ }
Expand description
Builder for creating test Network instances
Implementations§
Source§impl NetworkBuilder
impl NetworkBuilder
pub fn new() -> Self
pub fn name(self, name: &str) -> Self
pub fn slug(self, slug: &str) -> Self
pub fn network_type(self, network_type: BlockChainType) -> Self
pub fn chain_id(self, chain_id: u64) -> Self
pub fn network_passphrase(self, passphrase: &str) -> Self
pub fn store_blocks(self, store: bool) -> Self
pub fn rpc_url(self, url: &str) -> Self
pub fn rpc_urls(self, urls: Vec<&str>) -> Self
pub fn add_rpc_url(self, url: &str, type_: &str, weight: u32) -> Self
pub fn add_secret_rpc_url( self, url: SecretValue, type_: &str, weight: u32, ) -> Self
pub fn clear_rpc_urls(self) -> Self
pub fn block_time_ms(self, block_time: u64) -> Self
pub fn confirmation_blocks(self, blocks: u64) -> Self
pub fn cron_schedule(self, schedule: &str) -> Self
pub fn max_past_blocks(self, blocks: u64) -> Self
pub fn build(self) -> Network
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkBuilder
impl RefUnwindSafe for NetworkBuilder
impl Send for NetworkBuilder
impl Sync for NetworkBuilder
impl Unpin for NetworkBuilder
impl UnwindSafe for NetworkBuilder
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§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> 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