stof 0.9.19

Data that carries its own logic.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

root Request {
    // this is where request data is going to go
}
root Response {
    // where response data should go
}

#[cleanup]
/// Clear old request & response before the next.
/// Everything else in the graph persists.
fn cleanup() {
    drop(Request);
    drop(Response);
    Request = new root { };
    Response = new root { };
}