Struct disarray_ledger::blocks::BlockContent
source · pub struct BlockContent {
pub data: Vec<SignedTransaction>,
pub reference: Vec<H256>,
}
Fields
data: Vec<SignedTransaction>
reference: Vec<H256>
Implementations
sourceimpl BlockContent
impl BlockContent
pub fn new(data: Vec<SignedTransaction>, reference: Vec<H256>) -> Self
Trait Implementations
sourceimpl Clone for BlockContent
impl Clone for BlockContent
sourcefn clone(&self) -> BlockContent
fn clone(&self) -> BlockContent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BlockContent
impl Debug for BlockContent
sourceimpl Default for BlockContent
impl Default for BlockContent
sourcefn default() -> BlockContent
fn default() -> BlockContent
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BlockContent
impl<'de> Deserialize<'de> for BlockContent
sourcefn 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
sourceimpl Display for BlockContent
impl Display for BlockContent
sourceimpl Hash for BlockContent
impl Hash for BlockContent
sourceimpl Hashable for BlockContent
impl Hashable for BlockContent
sourceimpl PartialEq<BlockContent> for BlockContent
impl PartialEq<BlockContent> for BlockContent
sourcefn eq(&self, other: &BlockContent) -> bool
fn eq(&self, other: &BlockContent) -> bool
sourceimpl Serialize for BlockContent
impl Serialize for BlockContent
impl Eq for BlockContent
impl StructuralEq for BlockContent
impl StructuralPartialEq for BlockContent
Auto Trait Implementations
impl RefUnwindSafe for BlockContent
impl Send for BlockContent
impl Sync for BlockContent
impl Unpin for BlockContent
impl UnwindSafe for BlockContent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.