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: u32fragment: u32filename: Stringworkspace: Stringcontents: String

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.