pub struct BlockLogEntry<C> {
pub header: BlockLogHeader,
pub commands: Vec<C>,
}Expand description
Serializable block-log entry: signed header plus all command records.
The command payload type is generic because this crate owns only the block envelope. The runtime chooses the command record wire type for each log.
Fields§
§header: BlockLogHeader§commands: Vec<C>Trait Implementations§
Source§impl<C: Clone> Clone for BlockLogEntry<C>
impl<C: Clone> Clone for BlockLogEntry<C>
Source§fn clone(&self) -> BlockLogEntry<C>
fn clone(&self) -> BlockLogEntry<C>
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<C: Debug> Debug for BlockLogEntry<C>
impl<C: Debug> Debug for BlockLogEntry<C>
Source§impl<'de, C> Deserialize<'de> for BlockLogEntry<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for BlockLogEntry<C>where
C: Deserialize<'de>,
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<C: PartialEq> PartialEq for BlockLogEntry<C>
impl<C: PartialEq> PartialEq for BlockLogEntry<C>
Source§impl<C> Serialize for BlockLogEntry<C>where
C: Serialize,
impl<C> Serialize for BlockLogEntry<C>where
C: Serialize,
impl<C: Eq> Eq for BlockLogEntry<C>
impl<C> StructuralPartialEq for BlockLogEntry<C>
Auto Trait Implementations§
impl<C> Freeze for BlockLogEntry<C>
impl<C> RefUnwindSafe for BlockLogEntry<C>where
C: RefUnwindSafe,
impl<C> Send for BlockLogEntry<C>where
C: Send,
impl<C> Sync for BlockLogEntry<C>where
C: Sync,
impl<C> Unpin for BlockLogEntry<C>where
C: Unpin,
impl<C> UnsafeUnpin for BlockLogEntry<C>
impl<C> UnwindSafe for BlockLogEntry<C>where
C: UnwindSafe,
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