pub struct StepRequestBuilder { /* private fields */ }Expand description
Builder for creating a StepRequest.
Implementations§
source§impl StepRequestBuilder
impl StepRequestBuilder
sourcepub fn with_parent_state_hash(self, parent_state_hash: Digest) -> Self
pub fn with_parent_state_hash(self, parent_state_hash: Digest) -> Self
Sets parent_state_hash to the given Digest.
sourcepub fn with_protocol_version(self, protocol_version: ProtocolVersion) -> Self
pub fn with_protocol_version(self, protocol_version: ProtocolVersion) -> Self
Sets protocol_version to the given ProtocolVersion.
sourcepub fn with_slash_item(self, slash_item: SlashItem) -> Self
pub fn with_slash_item(self, slash_item: SlashItem) -> Self
Pushes the given SlashItem into slash_items.
sourcepub fn with_reward_item(self, reward_item: RewardItem) -> Self
pub fn with_reward_item(self, reward_item: RewardItem) -> Self
Pushes the given RewardItem into reward_items.
sourcepub fn with_reward_items(
self,
reward_items: impl IntoIterator<Item = RewardItem>
) -> Self
pub fn with_reward_items( self, reward_items: impl IntoIterator<Item = RewardItem> ) -> Self
Appends the given vector of RewardItem into reward_items.
sourcepub fn with_evict_item(self, evict_item: EvictItem) -> Self
pub fn with_evict_item(self, evict_item: EvictItem) -> Self
Pushes the given EvictItem into evict_items.
sourcepub fn with_evict_items(
self,
evict_items: impl IntoIterator<Item = EvictItem>
) -> Self
pub fn with_evict_items( self, evict_items: impl IntoIterator<Item = EvictItem> ) -> Self
Pushes the given vector of EvictItem into evict_items.
sourcepub fn with_run_auction(self, run_auction: bool) -> Self
pub fn with_run_auction(self, run_auction: bool) -> Self
Sets run_auction.
sourcepub fn with_next_era_id(self, next_era_id: EraId) -> Self
pub fn with_next_era_id(self, next_era_id: EraId) -> Self
Sets next_era_id to the given EraId.
sourcepub fn with_era_end_timestamp_millis(
self,
era_end_timestamp_millis: u64
) -> Self
pub fn with_era_end_timestamp_millis( self, era_end_timestamp_millis: u64 ) -> Self
Sets era_end_timestamp_millis.
sourcepub fn build(self) -> StepRequest
pub fn build(self) -> StepRequest
Consumes the StepRequestBuilder and returns a StepRequest.
Trait Implementations§
source§impl Clone for StepRequestBuilder
impl Clone for StepRequestBuilder
source§fn clone(&self) -> StepRequestBuilder
fn clone(&self) -> StepRequestBuilder
Returns a copy 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 StepRequestBuilder
impl Debug for StepRequestBuilder
Auto Trait Implementations§
impl RefUnwindSafe for StepRequestBuilder
impl Send for StepRequestBuilder
impl Sync for StepRequestBuilder
impl Unpin for StepRequestBuilder
impl UnwindSafe for StepRequestBuilder
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.