Sets the module code to compile and publish.
(mut self, code: &str)
| 779 | |
| 780 | /// Sets the module code to compile and publish. |
| 781 | pub fn module_code(mut self, code: &str) -> Self { |
| 782 | self.module_code = Some(code.to_string()); |
| 783 | self |
| 784 | } |
| 785 | |
| 786 | /// Uses a pre-compiled module instead of runtime compilation. |
| 787 | /// |