pub struct PieceObjective {
pub control_range_inches: Option<f64>,
pub position: Option<Vec2>,
}Expand description
Objective-marker metadata. Only meaningful when is_objective is true.
JSON schema
{
"description": "Objective-marker metadata. Only meaningful when `is_objective` is true.",
"type": "object",
"properties": {
"control_range_inches": {
"description": "Range from the marker within which models contribute to control.",
"type": "number",
"exclusiveMinimum": 0.0
},
"position": {
"description": "Board-inch position of the marker. Absent means the piece's `position`.",
"$ref": "#/$defs/vec2"
}
},
"additionalProperties": false
}Fields§
§control_range_inches: Option<f64>Range from the marker within which models contribute to control.
position: Option<Vec2>Board-inch position of the marker. Absent means the piece’s position.
Trait Implementations§
Source§impl Clone for PieceObjective
impl Clone for PieceObjective
Source§fn clone(&self) -> PieceObjective
fn clone(&self) -> PieceObjective
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 PieceObjective
impl Debug for PieceObjective
Source§impl Default for PieceObjective
impl Default for PieceObjective
Source§impl<'de> Deserialize<'de> for PieceObjective
impl<'de> Deserialize<'de> for PieceObjective
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 PieceObjective
impl PartialEq for PieceObjective
Source§fn eq(&self, other: &PieceObjective) -> bool
fn eq(&self, other: &PieceObjective) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PieceObjective
impl Serialize for PieceObjective
impl StructuralPartialEq for PieceObjective
Auto Trait Implementations§
impl Freeze for PieceObjective
impl RefUnwindSafe for PieceObjective
impl Send for PieceObjective
impl Sync for PieceObjective
impl Unpin for PieceObjective
impl UnsafeUnpin for PieceObjective
impl UnwindSafe for PieceObjective
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