pub struct ConstructionMaterial {
pub trade_symbol: TradeSymbol,
pub required: i32,
pub fulfilled: i32,
}Expand description
ConstructionMaterial : The details of the required construction materials for a given waypoint under construction.
Fields§
§trade_symbol: TradeSymbol§required: i32The number of units required.
fulfilled: i32The number of units fulfilled toward the required amount.
Implementations§
Source§impl ConstructionMaterial
impl ConstructionMaterial
Sourcepub fn new(
trade_symbol: TradeSymbol,
required: i32,
fulfilled: i32,
) -> ConstructionMaterial
pub fn new( trade_symbol: TradeSymbol, required: i32, fulfilled: i32, ) -> ConstructionMaterial
The details of the required construction materials for a given waypoint under construction.
Trait Implementations§
Source§impl Clone for ConstructionMaterial
impl Clone for ConstructionMaterial
Source§fn clone(&self) -> ConstructionMaterial
fn clone(&self) -> ConstructionMaterial
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstructionMaterial
impl Debug for ConstructionMaterial
Source§impl Default for ConstructionMaterial
impl Default for ConstructionMaterial
Source§fn default() -> ConstructionMaterial
fn default() -> ConstructionMaterial
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConstructionMaterial
impl<'de> Deserialize<'de> for ConstructionMaterial
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 ConstructionMaterial
impl PartialEq for ConstructionMaterial
Source§impl Serialize for ConstructionMaterial
impl Serialize for ConstructionMaterial
impl StructuralPartialEq for ConstructionMaterial
Auto Trait Implementations§
impl Freeze for ConstructionMaterial
impl RefUnwindSafe for ConstructionMaterial
impl Send for ConstructionMaterial
impl Sync for ConstructionMaterial
impl Unpin for ConstructionMaterial
impl UnwindSafe for ConstructionMaterial
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