pub struct ResourceDecl {
pub type_name: String,
pub default_value: Vec<u8>,
}Expand description
Describes a resource to be registered in the Bevy World.
Fields§
§type_name: StringType name for dynamic registration (TypeId is unstable across WASM).
default_value: Vec<u8>Serialised default value (bincode / postcard).
Trait Implementations§
Source§impl Clone for ResourceDecl
impl Clone for ResourceDecl
Source§fn clone(&self) -> ResourceDecl
fn clone(&self) -> ResourceDecl
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 ResourceDecl
impl Debug for ResourceDecl
Source§impl<'de> Deserialize<'de> for ResourceDecl
impl<'de> Deserialize<'de> for ResourceDecl
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 ResourceDecl
impl RefUnwindSafe for ResourceDecl
impl Send for ResourceDecl
impl Sync for ResourceDecl
impl Unpin for ResourceDecl
impl UnsafeUnpin for ResourceDecl
impl UnwindSafe for ResourceDecl
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