pub struct Metadata {
pub version: Option<u32>,
pub id: String,
pub name: String,
pub author: String,
pub description: String,
pub hash: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
The metadata stored in the bank may be Some("") or None when no value has
been set.
Some fields have only been found in Kilohearts factory content banks and not in those created with Kilohearts Bank Maker.
Fields§
§version: Option<u32>Only found in Kilohearts factory content banks.
id: StringA unique identifier for the bank, typically of the form “author.name”
name: String§description: String§hash: Option<String>A 160-bit hash as a hex string. Only found in Kilohearts factory content banks. The hash of a bank appears to be the same no matter who downloaded it or with which version of the application.
extra: HashMap<String, Value>Values found in the JSON but not part of the model.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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