pub async fn bytes(self, payload: Vec<u8>) -> Result<Canister<'a>, String> {
        let mut canister = self.runtime.create_canister(self.num_cycles).await?;
        self.install(&mut canister, payload).await?;
        Ok(canister)
    }
/// Creates and installs the canister.
///
/// `payload` is the the canister init payload, as raw bytes.
Creates and installs the canister.
`payload` is the the canister init payload, as raw bytes.
Creates and installs the canister . ` payload ` is the the canister init payload as raw bytes .
pub async fn bytes(self, payload: Vec<u8>) -> Result<Canister<'a>, String> {
        let mut canister = self.runtime.create_canister(self.num_cycles).await?;
        self.install(&mut canister, payload).await?;
        Ok(canister)
    }
pub async fn bytes ( self , payload : Vec < u8 > ) -> Result < Canister < ' a > , String > { let mut canister = self . runtime . create_canister ( self . num_cycles ) . await ? ; self . install ( & mut canister , payload ) . await ? ; Ok ( canister ) }
Creates and installs the canister.
Creates and installs the canister .
self
payload
Vec<u8>
self
payload
Vec<u8>