pub struct BlockParamsBuilder<___State = __BlockParamsBuilderInitialState> { /* private fields */ }Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build().
Implementations§
source§impl<__Validators, __NextValidators> BlockParamsBuilder<(__Validators, __NextValidators)>
impl<__Validators, __NextValidators> BlockParamsBuilder<(__Validators, __NextValidators)>
sourcepub fn build(self) -> BlockParamswhere
__Validators: IntoSet<Vec<TestgenValidator>, BlockParamsBuilder__validators>,
__NextValidators: IntoSet<Vec<TestgenValidator>, BlockParamsBuilder__next_validators>,
pub fn build(self) -> BlockParamswhere
__Validators: IntoSet<Vec<TestgenValidator>, BlockParamsBuilder__validators>,
__NextValidators: IntoSet<Vec<TestgenValidator>, BlockParamsBuilder__next_validators>,
Finishes building and returns the requested object.
sourcepub fn validators(
self,
value: Vec<TestgenValidator>,
) -> <Self as __BlockParamsBuilderSetMember>::Validatorswhere
__Validators: IsUnset,
pub fn validators(
self,
value: Vec<TestgenValidator>,
) -> <Self as __BlockParamsBuilderSetMember>::Validatorswhere
__Validators: IsUnset,
Sets the value of validators. See BlockParams::builder() for more info.
sourcepub fn next_validators(
self,
value: Vec<TestgenValidator>,
) -> <Self as __BlockParamsBuilderSetMember>::NextValidatorswhere
__NextValidators: IsUnset,
pub fn next_validators(
self,
value: Vec<TestgenValidator>,
) -> <Self as __BlockParamsBuilderSetMember>::NextValidatorswhere
__NextValidators: IsUnset,
Sets the value of next_validators. See BlockParams::builder() for more info.
Auto Trait Implementations§
impl<___State> Freeze for BlockParamsBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for BlockParamsBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for BlockParamsBuilder<___State>where
___State: Send,
impl<___State> Sync for BlockParamsBuilder<___State>where
___State: Sync,
impl<___State> Unpin for BlockParamsBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for BlockParamsBuilder<___State>where
___State: UnwindSafe,
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request