pub struct Kernelspec {
pub language: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Kernel information.
Fields§
§language: Option<String>The language name. This isn’t mentioned in the spec but is populated by various tools and
can be used as a fallback if language_info is missing.
This is also used by VS Code to determine the preferred language of the notebook: https://github.com/microsoft/vscode/blob/1c31e758985efe11bc0453a45ea0bb6887e670a4/extensions/ipynb/src/deserializers.ts#L20-L22.
extra: HashMap<String, Value>For additional properties that isn’t required by Ruff.
Trait Implementations§
Source§impl Clone for Kernelspec
impl Clone for Kernelspec
Source§fn clone(&self) -> Kernelspec
fn clone(&self) -> Kernelspec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Kernelspec
impl Debug for Kernelspec
Source§impl<'de> Deserialize<'de> for Kernelspec
impl<'de> Deserialize<'de> for Kernelspec
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 PartialEq for Kernelspec
impl PartialEq for Kernelspec
Source§impl Serialize for Kernelspec
impl Serialize for Kernelspec
impl StructuralPartialEq for Kernelspec
Auto Trait Implementations§
impl Freeze for Kernelspec
impl RefUnwindSafe for Kernelspec
impl Send for Kernelspec
impl Sync for Kernelspec
impl Unpin for Kernelspec
impl UnsafeUnpin for Kernelspec
impl UnwindSafe for Kernelspec
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