pub enum AssetOrigin {
External,
RuntimeOnly,
BuildOnly,
}Expand description
Where an asset comes from and whether it persists to a blob.
Variants§
External
Authored in a world and persisted to the blob.
RuntimeOnly
Created by the runtime; never persisted.
BuildOnly
Consumed by the build; never reaches the runtime.
Trait Implementations§
Source§impl Clone for AssetOrigin
impl Clone for AssetOrigin
Source§fn clone(&self) -> AssetOrigin
fn clone(&self) -> AssetOrigin
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 moreimpl Copy for AssetOrigin
Source§impl Debug for AssetOrigin
impl Debug for AssetOrigin
Source§impl<'de> Deserialize<'de> for AssetOrigin
impl<'de> Deserialize<'de> for AssetOrigin
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
impl Eq for AssetOrigin
Source§impl PartialEq for AssetOrigin
impl PartialEq for AssetOrigin
Source§impl Serialize for AssetOrigin
impl Serialize for AssetOrigin
impl StructuralPartialEq for AssetOrigin
Auto Trait Implementations§
impl Freeze for AssetOrigin
impl RefUnwindSafe for AssetOrigin
impl Send for AssetOrigin
impl Sync for AssetOrigin
impl Unpin for AssetOrigin
impl UnsafeUnpin for AssetOrigin
impl UnwindSafe for AssetOrigin
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.