pub struct ProjectConfig {
pub name: String,
pub version: String,
pub template_version: Option<String>,
pub robot: RobotConfig,
pub simulation: Option<ProjectSimulationConfig>,
pub nodes: NodesConfig,
pub targets: TargetsConfig,
pub behaviors: Option<BehaviorsConfig>,
pub docker: DockerServicesConfig,
pub environments: EnvironmentsConfig,
pub actuator: ActuatorConfig,
pub vision: VisionConfig,
}Fields§
§name: StringThe project’s name; lowercase letters, numbers, and hyphens only, 1-64 characters.
version: String§template_version: Option<String>Which published templates release this project’s scaffolded files were generated from.
robot: RobotConfig§simulation: Option<ProjectSimulationConfig>§nodes: NodesConfig§targets: TargetsConfig§behaviors: Option<BehaviorsConfig>§docker: DockerServicesConfig§environments: EnvironmentsConfig§actuator: ActuatorConfigActuator motion limits (linear/angular velocity and acceleration) applied to every node.
vision: VisionConfigCamera resolution shared by every node/service that captures, renders, or consumes camera frames (real camera, simulated camera, object-detector, image-classifier, etc.).
Implementations§
Source§impl ProjectConfig
impl ProjectConfig
Sourcepub fn schema_value() -> Value
pub fn schema_value() -> Value
The schemars-derived JSON Schema for this struct, as a serde_json::Value. Doesn’t
cover nodes’s legacy array shape or run_targets/scripts - mecha10 schema export
splices those back in separately.
Trait Implementations§
Source§impl Debug for ProjectConfig
impl Debug for ProjectConfig
Source§impl<'de> Deserialize<'de> for ProjectConfig
impl<'de> Deserialize<'de> for ProjectConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProjectConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ProjectConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ProjectConfig
impl JsonSchema for ProjectConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Serialize for ProjectConfig
impl Serialize for ProjectConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ProjectConfig
impl RefUnwindSafe for ProjectConfig
impl Send for ProjectConfig
impl Sync for ProjectConfig
impl Unpin for ProjectConfig
impl UnsafeUnpin for ProjectConfig
impl UnwindSafe for ProjectConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more