pub struct BlueprintView {
pub id: String,
pub label: String,
pub output: String,
pub output_qty: u32,
pub craft_ticks: u32,
pub inputs: Vec<BlueprintIngredientView>,
pub station: Option<String>,
pub category: Option<String>,
pub required_tools: Vec<ToolRequirementView>,
pub skill: Option<SkillRequirementView>,
pub failure_chance: f32,
}Fields§
§id: String§label: String§output: String§output_qty: u32§craft_ticks: u32§inputs: Vec<BlueprintIngredientView>§station: Option<String>Postcard always serializes optional fields (no skip_serializing_if) so decode stays aligned.
category: Option<String>§required_tools: Vec<ToolRequirementView>§skill: Option<SkillRequirementView>§failure_chance: f32Trait Implementations§
Source§impl Clone for BlueprintView
impl Clone for BlueprintView
Source§fn clone(&self) -> BlueprintView
fn clone(&self) -> BlueprintView
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 BlueprintView
impl Debug for BlueprintView
Source§impl<'de> Deserialize<'de> for BlueprintView
impl<'de> Deserialize<'de> for BlueprintView
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 BlueprintView
impl PartialEq for BlueprintView
Source§impl Serialize for BlueprintView
impl Serialize for BlueprintView
impl StructuralPartialEq for BlueprintView
Auto Trait Implementations§
impl Freeze for BlueprintView
impl RefUnwindSafe for BlueprintView
impl Send for BlueprintView
impl Sync for BlueprintView
impl Unpin for BlueprintView
impl UnsafeUnpin for BlueprintView
impl UnwindSafe for BlueprintView
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