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 moreAuto 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