pub struct GameSchema {
pub sha256: String,
pub categories: Vec<SchemaCategory>,
}Expand description
A game’s install schema as the manifest publishes it: which categories its catalogue has, which ask for one pick, and where each installs.
The installer only compares sha256 with the schema it was built with and
stops downloading on a mismatch; its behaviour never comes from these
fields, so a server cannot steer where files go. Every field is a plain
String so a newer server’s values fail an old installer’s comparison, never its parse.
Fields§
§sha256: StringOf the schema file’s exact bytes, lowercase hex.
categories: Vec<SchemaCategory>Trait Implementations§
Source§impl Clone for GameSchema
impl Clone for GameSchema
Source§fn clone(&self) -> GameSchema
fn clone(&self) -> GameSchema
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 GameSchema
impl Debug for GameSchema
Source§impl<'de> Deserialize<'de> for GameSchema
impl<'de> Deserialize<'de> for GameSchema
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 GameSchema
Source§impl PartialEq for GameSchema
impl PartialEq for GameSchema
Source§impl Serialize for GameSchema
impl Serialize for GameSchema
impl StructuralPartialEq for GameSchema
Auto Trait Implementations§
impl Freeze for GameSchema
impl RefUnwindSafe for GameSchema
impl Send for GameSchema
impl Sync for GameSchema
impl Unpin for GameSchema
impl UnsafeUnpin for GameSchema
impl UnwindSafe for GameSchema
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