pub fn as_batch_payload(&self) -> &BatchPayload {
        match self {
            BlockPayload::BatchAndDealings(batch, _) => batch,
            _ => panic!("No batch payload available on a summary block."),
        }
    }
/// Return a reference to batch payload. Panics if called on a summary
/// payload.
Return a reference to batch payload. Panics if called on a summary
payload.
Return a reference to batch payload . Panics if called on a summary payload .
pub fn as_batch_payload(&self) -> &BatchPayload {
        match self {
            BlockPayload::BatchAndDealings(batch, _) => batch,
            _ => panic!("No batch payload available on a summary block."),
        }
    }
pub fn as_batch_payload ( & self ) -> & BatchPayload { match self { BlockPayload :: BatchAndDealings ( batch , _ ) => batch , _ => panic ! ( " " ) , } }
Return a reference to batch payload.
Return a reference to batch payload .
&self
&self