fn message_to_advert(msg: &TestArtifactMessage) -> Advert<TestArtifact> {
        Advert {
            attribute: msg.id.to_string(),
            size: 0,
            id: msg.id.clone(),
            integrity_hash: CryptoHash(msg.id.clone().into_bytes()),
        }
    }
/// The function converts a TestArtifactMessage to an advert for a
/// TestArtifact.
The function converts a TestArtifactMessage to an advert for a
TestArtifact.
The function converts a TestArtifactMessage to an advert for a TestArtifact .
fn message_to_advert(msg: &TestArtifactMessage) -> Advert<TestArtifact> {
        Advert {
            attribute: msg.id.to_string(),
            size: 0,
            id: msg.id.clone(),
            integrity_hash: CryptoHash(msg.id.clone().into_bytes()),
        }
    }
fn message_to_advert ( msg : & TestArtifactMessage ) -> Advert < TestArtifact > { Advert { attribute : msg . id . to_string ( ) , size : 0 , id : msg . id . clone ( ) , integrity_hash : CryptoHash ( msg . id . clone ( ) . into_bytes ( ) ) , } }
The function converts a TestArtifactMessage to an advert for a
TestArtifact.
The function converts a TestArtifactMessage to an advert for a TestArtifact .
msg
&TestArtifactMessage
msg
&TestArtifactMessage