pub fn as_summary(&self) -> &SummaryPayload {
        match self {
            BlockPayload::Summary(summary) => summary,
            _ => panic!("No DKG summary available on a block with dealings."),
        }
    }
/// Returns a reference to summary. Panics if called on a data
/// payload.
Returns a reference to summary. Panics if called on a data
payload.
Returns a reference to summary . Panics if called on a data payload .
pub fn as_summary(&self) -> &SummaryPayload {
        match self {
            BlockPayload::Summary(summary) => summary,
            _ => panic!("No DKG summary available on a block with dealings."),
        }
    }
pub fn as_summary ( & self ) -> & SummaryPayload { match self { BlockPayload :: Summary ( summary ) => summary , _ => panic ! ( " " ) , } }
Returns a reference to summary.
Returns a reference to summary .
&self
&self