pub struct ShellConfig {
pub id: String,
pub name: String,
pub shell_type: ShellType,
pub universe_path: String,
pub conservation_budget: f64,
pub parent_id: Option<String>,
pub max_children: usize,
pub capabilities: Vec<String>,
pub model: Option<String>,
}Expand description
Configuration for spawning a new shell.
Fields§
§id: String§name: String§shell_type: ShellType§universe_path: String§conservation_budget: f64§parent_id: Option<String>§max_children: usize§capabilities: Vec<String>§model: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ShellConfig
impl Clone for ShellConfig
Source§fn clone(&self) -> ShellConfig
fn clone(&self) -> ShellConfig
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 ShellConfig
impl Debug for ShellConfig
Source§impl<'de> Deserialize<'de> for ShellConfig
impl<'de> Deserialize<'de> for ShellConfig
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 ShellConfig
impl PartialEq for ShellConfig
Source§fn eq(&self, other: &ShellConfig) -> bool
fn eq(&self, other: &ShellConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShellConfig
impl Serialize for ShellConfig
impl StructuralPartialEq for ShellConfig
Auto Trait Implementations§
impl Freeze for ShellConfig
impl RefUnwindSafe for ShellConfig
impl Send for ShellConfig
impl Sync for ShellConfig
impl Unpin for ShellConfig
impl UnsafeUnpin for ShellConfig
impl UnwindSafe for ShellConfig
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