pub struct BlockParamsBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> BlockParamsBuilder<S>
impl<S: State> BlockParamsBuilder<S>
Sourcepub fn build(self) -> BlockParamswhere
S: IsComplete,
pub fn build(self) -> BlockParamswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn validators(
self,
value: Vec<TestgenValidator>,
) -> BlockParamsBuilder<SetValidators<S>>where
S::Validators: IsUnset,
pub fn validators(
self,
value: Vec<TestgenValidator>,
) -> BlockParamsBuilder<SetValidators<S>>where
S::Validators: IsUnset,
Required.
Sourcepub fn next_validators(
self,
value: Vec<TestgenValidator>,
) -> BlockParamsBuilder<SetNextValidators<S>>where
S::NextValidators: IsUnset,
pub fn next_validators(
self,
value: Vec<TestgenValidator>,
) -> BlockParamsBuilder<SetNextValidators<S>>where
S::NextValidators: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for BlockParamsBuilder<S>
impl<S> RefUnwindSafe for BlockParamsBuilder<S>
impl<S> Send for BlockParamsBuilder<S>
impl<S> Sync for BlockParamsBuilder<S>
impl<S> Unpin for BlockParamsBuilder<S>
impl<S> UnwindSafe for BlockParamsBuilder<S>
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