Struct bones_asset::PackfileMeta
source · pub struct PackfileMeta {
pub name: String,
pub id: AssetPackId,
pub version: Version,
pub game_version: VersionReq,
pub schemas: Vec<PathBuf>,
pub root: PathBuf,
}
Expand description
YAML format for asset packs’ pack.yaml
file.
Fields§
§name: String
User friendly pack name.
id: AssetPackId
The unique ID of the asset pack.
version: Version
The version of the asset pack.
game_version: VersionReq
The required game version to be compatible with this asset pack.
schemas: Vec<PathBuf>
The paths to schema definitions to be loaded from this pack.
root: PathBuf
The path to the root asset for the pack.
Trait Implementations§
source§impl Clone for PackfileMeta
impl Clone for PackfileMeta
source§fn clone(&self) -> PackfileMeta
fn clone(&self) -> PackfileMeta
Returns a copy of the value. Read more
1.0.0 · 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 PackfileMeta
impl Debug for PackfileMeta
source§impl<'de> Deserialize<'de> for PackfileMeta
impl<'de> Deserialize<'de> for PackfileMeta
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 PackfileMeta
impl RefUnwindSafe for PackfileMeta
impl Send for PackfileMeta
impl Sync for PackfileMeta
impl Unpin for PackfileMeta
impl UnwindSafe for PackfileMeta
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)