pub struct Construction {
pub symbol: String,
pub materials: Vec<ConstructionMaterial>,
pub is_complete: bool,
}Expand description
Construction : The construction details of a waypoint.
Fields§
§symbol: StringThe symbol of the waypoint.
materials: Vec<ConstructionMaterial>The materials required to construct the waypoint.
is_complete: boolWhether the waypoint has been constructed.
Implementations§
Source§impl Construction
impl Construction
Sourcepub fn new(
symbol: String,
materials: Vec<ConstructionMaterial>,
is_complete: bool,
) -> Construction
pub fn new( symbol: String, materials: Vec<ConstructionMaterial>, is_complete: bool, ) -> Construction
The construction details of a waypoint.
Trait Implementations§
Source§impl Clone for Construction
impl Clone for Construction
Source§fn clone(&self) -> Construction
fn clone(&self) -> Construction
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 Construction
impl Debug for Construction
Source§impl Default for Construction
impl Default for Construction
Source§fn default() -> Construction
fn default() -> Construction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Construction
impl<'de> Deserialize<'de> for Construction
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 Construction
impl PartialEq for Construction
Source§impl Serialize for Construction
impl Serialize for Construction
impl StructuralPartialEq for Construction
Auto Trait Implementations§
impl Freeze for Construction
impl RefUnwindSafe for Construction
impl Send for Construction
impl Sync for Construction
impl Unpin for Construction
impl UnwindSafe for Construction
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