Text
Text format (text/plain).
The "text" format is used to import and export plain text from a "text" field.
hello, thereimport "./test.txt"; // "text" format also has "txt" as an identifier
// import text "./test.txt"; // also works
#[main]
fn main() {
assert_eq(self.text, "hello, there");
assert_eq(stringify("text", self), "hello, there");
}Last updated
Was this helpful?