Struct RecipeBookDisplayEntry
pub struct RecipeBookDisplayEntry {
pub recipe: String,
pub displays: Vec<RecipeBookDisplay>,
pub placement: Option<PlacementInfo>,
}Expand description
Displays supplied by a recipe type for one recipe. A recipe may have several displays. Declarations are evaluated once per recipe-table load, not per frame.
Fields§
§recipe: StringRecipe id in the owning category’s recipe type.
displays: Vec<RecipeBookDisplay>§placement: Option<PlacementInfo>Authoritative ingredient cells for this recipe, independent of its
pictures. Required when the owning recipe type is bound to a menu’s
placement layout. None is not an inference from display alternatives.
Trait Implementations§
§impl Clone for RecipeBookDisplayEntry
impl Clone for RecipeBookDisplayEntry
§fn clone(&self) -> RecipeBookDisplayEntry
fn clone(&self) -> RecipeBookDisplayEntry
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 more§impl Debug for RecipeBookDisplayEntry
impl Debug for RecipeBookDisplayEntry
§impl PartialEq for RecipeBookDisplayEntry
impl PartialEq for RecipeBookDisplayEntry
impl StructuralPartialEq for RecipeBookDisplayEntry
Auto Trait Implementations§
impl Freeze for RecipeBookDisplayEntry
impl RefUnwindSafe for RecipeBookDisplayEntry
impl Send for RecipeBookDisplayEntry
impl Sync for RecipeBookDisplayEntry
impl Unpin for RecipeBookDisplayEntry
impl UnsafeUnpin for RecipeBookDisplayEntry
impl UnwindSafe for RecipeBookDisplayEntry
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