pub struct TargetProfile {
pub id: String,
pub status: Status,
pub display: Display,
pub frame_rate: FrameRate,
pub input: Input,
pub quit: Quit,
pub budgets: Budgets,
pub backend: String,
}Expand description
One export target.
Fields§
§id: StringIts id, which shuyi check --target and a game’s shuyi.ron name
it by: the file’s name without .ron.
status: StatusWhether the engine runs on it yet.
display: DisplayIts screen.
frame_rate: FrameRateThe frames a second a game holds there.
input: InputWhat the player can press.
quit: QuitHow the player leaves a game there: by its own Quit unless said.
budgets: BudgetsWhat a game may spend there.
backend: StringThe platform backend that builds it: a crate (shuyi-app,
shuyi-playdate), or private for a console’s.
Implementations§
Source§impl TargetProfile
impl TargetProfile
Sourcepub fn from_source(
file: &str,
stem: &str,
source: &str,
) -> Result<Self, Vec<ContentError>>
pub fn from_source( file: &str, stem: &str, source: &str, ) -> Result<Self, Vec<ContentError>>
Parses and checks profile source, the file stem.ron shown as
file. Reports every problem: an id that isn’t the file’s name,
text sizes or frame rates out of order, an empty size, a safe area
that leaves nothing, a chord of buttons the target doesn’t have.
Trait Implementations§
Source§impl AssetKind for TargetProfile
impl AssetKind for TargetProfile
Source§impl Clone for TargetProfile
impl Clone for TargetProfile
Source§fn clone(&self) -> TargetProfile
fn clone(&self) -> TargetProfile
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 TargetProfile
impl Debug for TargetProfile
Source§impl<'de> Deserialize<'de> for TargetProfile
impl<'de> Deserialize<'de> for TargetProfile
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 TargetProfile
Source§impl PartialEq for TargetProfile
impl PartialEq for TargetProfile
Source§impl Serialize for TargetProfile
impl Serialize for TargetProfile
impl StructuralPartialEq for TargetProfile
Auto Trait Implementations§
impl Freeze for TargetProfile
impl RefUnwindSafe for TargetProfile
impl Send for TargetProfile
impl Sync for TargetProfile
impl Unpin for TargetProfile
impl UnsafeUnpin for TargetProfile
impl UnwindSafe for TargetProfile
Blanket Implementations§
impl<K> Bakeable for K
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