pub enum FileOrigin {
NotebookCell {
notebook_path: String,
cell_index: usize,
cell_id: Option<String>,
cell_type: String,
},
}Expand description
Where a virtual file’s content really comes from.
Attached to a file via FileMetadata::origin. The canonical display
label (via fmt::Display) is what diagnostics show the user; the
structured fields are what JSON consumers get.
Variants§
NotebookCell
Content extracted from one cell of a computational notebook.
Fields
§
notebook_path: StringPath of the notebook file on disk — the hyperlink target and
the file reported in structured output.
§
cell_index: usize1-based index of the cell within the notebook, counted over all cells regardless of type.
Trait Implementations§
Source§impl Clone for FileOrigin
impl Clone for FileOrigin
Source§impl Debug for FileOrigin
impl Debug for FileOrigin
Source§impl<'de> Deserialize<'de> for FileOrigin
impl<'de> Deserialize<'de> for FileOrigin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for FileOrigin
impl Display for FileOrigin
Source§impl PartialEq for FileOrigin
impl PartialEq for FileOrigin
Source§impl Serialize for FileOrigin
impl Serialize for FileOrigin
impl StructuralPartialEq for FileOrigin
Auto Trait Implementations§
impl Freeze for FileOrigin
impl RefUnwindSafe for FileOrigin
impl Send for FileOrigin
impl Sync for FileOrigin
impl Unpin for FileOrigin
impl UnsafeUnpin for FileOrigin
impl UnwindSafe for FileOrigin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more