pub struct ResponsePrepareProposal {
pub tx_records: Vec<TxRecord>,
pub app_hash: Vec<u8>,
pub tx_results: Vec<ExecTxResult>,
pub consensus_param_updates: Option<ConsensusParams>,
pub core_chain_lock_update: Option<CoreChainLock>,
pub validator_set_update: Option<ValidatorSetUpdate>,
pub app_version: u64,
}Fields§
§tx_records: Vec<TxRecord>Possibly modified list of transactions that have been picked as part of the proposed block.
app_hash: Vec<u8>The Merkle root hash of the application state. 32 bytes.
tx_results: Vec<ExecTxResult>List of structures containing the data resulting from executing the transactions.
consensus_param_updates: Option<ConsensusParams>Changes to consensus-critical gas, size, and other parameters that will be applied at next height.
core_chain_lock_update: Option<CoreChainLock>Core chain lock that will be used for next block.
validator_set_update: Option<ValidatorSetUpdate>Changes to validator set that will be applied at next height.
app_version: u64Application version that was used to create the current proposal.
Trait Implementations§
Source§impl Clone for ResponsePrepareProposal
impl Clone for ResponsePrepareProposal
Source§fn clone(&self) -> ResponsePrepareProposal
fn clone(&self) -> ResponsePrepareProposal
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 ResponsePrepareProposal
impl Debug for ResponsePrepareProposal
Source§impl Default for ResponsePrepareProposal
impl Default for ResponsePrepareProposal
Source§impl<'de> Deserialize<'de> for ResponsePrepareProposal
impl<'de> Deserialize<'de> for ResponsePrepareProposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ResponsePrepareProposal> for Value
impl From<ResponsePrepareProposal> for Value
Source§fn from(value: ResponsePrepareProposal) -> Self
fn from(value: ResponsePrepareProposal) -> Self
Converts to this type from the input type.
Source§impl Message for ResponsePrepareProposal
impl Message for ResponsePrepareProposal
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ResponsePrepareProposal
impl PartialEq for ResponsePrepareProposal
Source§impl Serialize for ResponsePrepareProposal
impl Serialize for ResponsePrepareProposal
impl StructuralPartialEq for ResponsePrepareProposal
Auto Trait Implementations§
impl Freeze for ResponsePrepareProposal
impl RefUnwindSafe for ResponsePrepareProposal
impl Send for ResponsePrepareProposal
impl Sync for ResponsePrepareProposal
impl Unpin for ResponsePrepareProposal
impl UnwindSafe for ResponsePrepareProposal
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,
§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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].