pub struct BlueprintIngredientView {
pub template_id: String,
pub quantity: u32,
pub consumed: bool,
}Fields§
§template_id: String§quantity: u32§consumed: boolAlways serialize — true is not bool::default() so postcard keeps it; explicit for clarity.
Trait Implementations§
Source§impl Clone for BlueprintIngredientView
impl Clone for BlueprintIngredientView
Source§fn clone(&self) -> BlueprintIngredientView
fn clone(&self) -> BlueprintIngredientView
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 moreSource§impl Debug for BlueprintIngredientView
impl Debug for BlueprintIngredientView
Source§impl<'de> Deserialize<'de> for BlueprintIngredientView
impl<'de> Deserialize<'de> for BlueprintIngredientView
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
Source§impl PartialEq for BlueprintIngredientView
impl PartialEq for BlueprintIngredientView
Source§impl Serialize for BlueprintIngredientView
impl Serialize for BlueprintIngredientView
impl StructuralPartialEq for BlueprintIngredientView
Auto Trait Implementations§
impl Freeze for BlueprintIngredientView
impl RefUnwindSafe for BlueprintIngredientView
impl Send for BlueprintIngredientView
impl Sync for BlueprintIngredientView
impl Unpin for BlueprintIngredientView
impl UnsafeUnpin for BlueprintIngredientView
impl UnwindSafe for BlueprintIngredientView
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