Struct linera_chain::data_types::BlockProposal
source · pub struct BlockProposal {
pub content: BlockAndRound,
pub owner: Owner,
pub signature: Signature,
pub blobs: Vec<HashedValue>,
pub validated: Option<Certificate>,
}
Expand description
An authenticated proposal for a new block.
Fields§
§content: BlockAndRound
§owner: Owner
§signature: Signature
§blobs: Vec<HashedValue>
§validated: Option<Certificate>
Implementations§
source§impl BlockProposal
impl BlockProposal
pub fn new( content: BlockAndRound, secret: &KeyPair, blobs: Vec<HashedValue>, validated: Option<Certificate> ) -> Self
Trait Implementations§
source§impl Clone for BlockProposal
impl Clone for BlockProposal
source§fn clone(&self) -> BlockProposal
fn clone(&self) -> BlockProposal
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 BlockProposal
impl Debug for BlockProposal
source§impl<'de> Deserialize<'de> for BlockProposal
impl<'de> Deserialize<'de> for BlockProposal
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
Auto Trait Implementations§
impl Freeze for BlockProposal
impl RefUnwindSafe for BlockProposal
impl Send for BlockProposal
impl Sync for BlockProposal
impl Unpin for BlockProposal
impl UnwindSafe for BlockProposal
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