deployment_id

Macro deployment_id 

Source
macro_rules! deployment_id {
    () => { ... };
    ($id:tt) => { ... };
}
Expand description

Converts a sequence of string literals containing CIDv0 data into a new DeploymentId at compile time.

To create an DeploymentId from a string literal (Base58) at compile time:

const DEPLOYMENT_ID: DeploymentId = deployment_id!("QmSWxvd8SaQK6qZKJ7xtfxCCGoRzGnoi2WNzmJYYJW9BXY");

If no argument is provided, the macro will create an DeploymentId with the zero ID:

const DEPLOYMENT_ID: DeploymentId = deployment_id!();

assert_eq!(DEPLOYMENT_ID, DeploymentId::ZERO);