pub struct TargetProblem {
pub level: Level,
pub check: TargetCheck,
pub setting: String,
pub message: String,
pub screen: Option<String>,
pub actions: Vec<String>,
pub inputs: Vec<String>,
pub roles: Vec<String>,
}Expand description
A problem of the game on one target.
Fields§
§level: LevelAn error or a warning.
check: TargetCheckThe check that found it.
setting: StringThe game’s setting it is about: in shuyi.ron
(targets."playdate".frame), the keymap file’s table for the
target (keymap targets."playdate"), a screen’s declaration
(screen "title"), or the skin’s pattern map
(files/palette@onebit.ron).
message: StringWhat is wrong, with the numbers.
screen: Option<String>The screen a controls problem is about, if one.
actions: Vec<String>The actions a controls problem is about, by name.
inputs: Vec<String>The inputs a controls problem is about, as the keymap file names
them (East, East+West).
roles: Vec<String>The palette roles a one-bit problem is about (team.player).
Trait Implementations§
Source§impl Clone for TargetProblem
impl Clone for TargetProblem
Source§fn clone(&self) -> TargetProblem
fn clone(&self) -> TargetProblem
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 TargetProblem
impl Debug for TargetProblem
Source§impl<'de> Deserialize<'de> for TargetProblem
impl<'de> Deserialize<'de> for TargetProblem
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
impl Eq for TargetProblem
Source§impl JsonSchema for TargetProblem
impl JsonSchema for TargetProblem
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 PartialEq for TargetProblem
impl PartialEq for TargetProblem
Source§impl Serialize for TargetProblem
impl Serialize for TargetProblem
impl StructuralPartialEq for TargetProblem
Auto Trait Implementations§
impl Freeze for TargetProblem
impl RefUnwindSafe for TargetProblem
impl Send for TargetProblem
impl Sync for TargetProblem
impl Unpin for TargetProblem
impl UnsafeUnpin for TargetProblem
impl UnwindSafe for TargetProblem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.