Option and Result
option.sidex
/// An optional value of type `T`.
variant Option<T> {
/// No value.
None,
/// Some value of type `T`.
Some: T
}
result.sidex
/// A result.
variant Result<T, E> {
Ok: T,
Err: E
}
To use Option
and Result
in your schemas, you have to explicitly import them:
import ::sidex::{option::Option, result::Result}