Struct rustkernel::handlers::CodeRequest
source · [−]pub struct CodeRequest {
pub index: u32,
pub fragment: u32,
pub filename: String,
pub workspace: String,
pub contents: String,
}
Expand description
The requests from VS Code are marshalled through Serde
via this struct
Terms
- index: the current vertical position of the cell that was executed
- fragment: a unique ID for each cell, if they change order this id remains the same
- filename: Where the file was executed from, important to reset the code if the user changes files
- contents: the contents / source code of a cell
Fields
index: u32
fragment: u32
filename: String
workspace: String
contents: String