pub struct InjectedAsset {
pub name: String,
pub asset_type: String,
pub args: Value,
pub injected_by: &'static str,
}Expand description
One asset added to the world by an injection pass rather than authored or macro-expanded. Recorded in world-lock.json so the user can see every default and copy its entry into world.jsonl as an override.
Fields§
§name: StringThe injected asset’s name.
asset_type: StringThe asset’s registry type name.
args: ValueThe args the injection supplied.
injected_by: &'static strThe injection pass (an EngineDefaults flag name or “companion”), so listings can say where a default came from.
Trait Implementations§
Source§impl Clone for InjectedAsset
impl Clone for InjectedAsset
Source§fn clone(&self) -> InjectedAsset
fn clone(&self) -> InjectedAsset
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 InjectedAsset
impl RefUnwindSafe for InjectedAsset
impl Send for InjectedAsset
impl Sync for InjectedAsset
impl Unpin for InjectedAsset
impl UnsafeUnpin for InjectedAsset
impl UnwindSafe for InjectedAsset
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more