/// The function converts a `SignedIngress` into an advert for an
/// `IngressArtifact`.
The function converts a `SignedIngress` into an advert for an
`IngressArtifact`.
The function converts a ` SignedIngress ` into an advert for an ` IngressArtifact ` .
fn message_to_advert(msg: &SignedIngress) -> Advert<IngressArtifact> {
        Advert {
            id: IngressMessageId::from(msg),
            attribute: IngressMessageAttribute::new(msg),
            size: msg.count_bytes(),
            integrity_hash: ic_crypto::crypto_hash(msg.binary()).get(),
        }
    }
fn message_to_advert ( msg : & SignedIngress ) -> Advert < IngressArtifact > { Advert { id : IngressMessageId :: from ( msg ) , attribute : IngressMessageAttribute :: new ( msg ) , size : msg . count_bytes ( ) , integrity_hash : ic_crypto :: crypto_hash ( msg . binary ( ) ) . get ( ) , } }
The function converts a `SignedIngress` into an advert for an
`IngressArtifact`.
The function converts a ` SignedIngress ` into an advert for an ` IngressArtifact ` .
msg
&SignedIngress