Struct minecraft_assets::schemas::models::OverrideCase [−][src]
pub struct OverrideCase {
pub predicate: HashMap<String, PredicateValue>,
pub model: String,
}
Expand description
One possible case in which an item’s Model
should be overridden.
Fields
predicate: HashMap<String, PredicateValue>
Specifies when this override should be active.
See the wiki page for a list of possible item predicates.
model: String
The path to the model to use if the case is met, in form of a resource location.
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for OverrideCase
impl Send for OverrideCase
impl Sync for OverrideCase
impl Unpin for OverrideCase
impl UnwindSafe for OverrideCase
Blanket Implementations
Mutably borrows from an owned value. Read more