pub struct NotebooksToml {
pub enabled: Option<bool>,
pub dir: Option<PathBuf>,
pub python: Option<PathBuf>,
pub bind: Option<String>,
pub token: Option<String>,
pub cull_idle_secs: Option<u64>,
}Expand description
The {config-dir}/notebooks.toml document.
The document is the notebooks table — no wrapper section — since the file has this one concern. Unknown keys are ignored so future knobs don’t break older engines.
Fields§
§enabled: Option<bool>Enable the notebook service (same as --with-notebooks).
dir: Option<PathBuf>Contents-API root.
python: Option<PathBuf>Python interpreter for the sidecar (skips auto-provisioning).
bind: Option<String>Loopback bind for the sidecar ("127.0.0.1:0" = engine-assigned).
token: Option<String>Jupyter auth token (auto-minted when absent).
cull_idle_secs: Option<u64>Kernel idle culling timeout, seconds.
Implementations§
Source§impl NotebooksToml
impl NotebooksToml
Sourcepub fn from_toml_str(text: &str) -> Result<Self, NotebookError>
pub fn from_toml_str(text: &str) -> Result<Self, NotebookError>
Parse a notebooks.toml document.
Trait Implementations§
Source§impl Clone for NotebooksToml
impl Clone for NotebooksToml
Source§fn clone(&self) -> NotebooksToml
fn clone(&self) -> NotebooksToml
Returns a duplicate of the value. Read more
1.0.0 · 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 NotebooksToml
impl Debug for NotebooksToml
Source§impl Default for NotebooksToml
impl Default for NotebooksToml
Source§fn default() -> NotebooksToml
fn default() -> NotebooksToml
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotebooksToml
impl<'de> Deserialize<'de> for NotebooksToml
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
Auto Trait Implementations§
impl Freeze for NotebooksToml
impl RefUnwindSafe for NotebooksToml
impl Send for NotebooksToml
impl Sync for NotebooksToml
impl Unpin for NotebooksToml
impl UnsafeUnpin for NotebooksToml
impl UnwindSafe for NotebooksToml
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