/// Creates a `Payload` that contains a subset of this `Payload`'s messages.
Creates a `Payload` that contains a subset of this `Payload`'s messages.
Creates a ` Payload ` that contains a subset of this ` Payload ` ' s messages .
fn new_partial(&self, messages: Option<PayloadTreeMap>) -> CertifiedSliceResult<Self> {
        Ok(Self {
            subnet_id: self.subnet_id.clone(),
            header: self.header.clone(),
            messages: messages.map(Messages::new).transpose()?,
        })
    }
fn new_partial ( & self , messages : Option < PayloadTreeMap > ) -> CertifiedSliceResult < Self > { Ok ( Self { subnet_id : self . subnet_id . clone ( ) , header : self . header . clone ( ) , messages : messages . map ( Messages :: new ) . transpose ( ) ? , } ) }
Creates a `Payload` that contains a subset of this `Payload`'s messages.
Creates a ` Payload ` that contains a subset of this ` Payload ` ' s messages .
&self
messages
Option<PayloadTreeMap>