pub enum StoreObject {
Show 18 variants Creep(Creep), PowerCreep(PowerCreep), Ruin(Ruin), ScoreCollector(ScoreCollector), ScoreContainer(ScoreContainer), StructureContainer(StructureContainer), StructureExtension(StructureExtension), StructureFactory(StructureFactory), StructureLab(StructureLab), StructureLink(StructureLink), StructureNuker(StructureNuker), StructurePowerSpawn(StructurePowerSpawn), StructureSpawn(StructureSpawn), StructureStorage(StructureStorage), StructureTerminal(StructureTerminal), StructureTower(StructureTower), SymbolContainer(SymbolContainer), Tombstone(Tombstone),
}

Variants§

§

Creep(Creep)

§

PowerCreep(PowerCreep)

§

Ruin(Ruin)

§

ScoreCollector(ScoreCollector)

Available on crate feature seasonal-season-1 only.
§

ScoreContainer(ScoreContainer)

Available on crate feature seasonal-season-1 only.
§

StructureContainer(StructureContainer)

§

StructureExtension(StructureExtension)

§

StructureFactory(StructureFactory)

§

StructureLab(StructureLab)

§

StructureNuker(StructureNuker)

§

StructurePowerSpawn(StructurePowerSpawn)

§

StructureSpawn(StructureSpawn)

§

StructureStorage(StructureStorage)

§

StructureTerminal(StructureTerminal)

§

StructureTower(StructureTower)

§

SymbolContainer(SymbolContainer)

Available on crate feature seasonal-season-2 only.
§

Tombstone(Tombstone)

Trait Implementations§

source§

impl From<Creep> for StoreObject

source§

fn from(v: Creep) -> StoreObject

Converts to this type from the input type.
source§

impl From<PowerCreep> for StoreObject

source§

fn from(v: PowerCreep) -> StoreObject

Converts to this type from the input type.
source§

impl From<Ruin> for StoreObject

source§

fn from(v: Ruin) -> StoreObject

Converts to this type from the input type.
source§

impl From<ScoreCollector> for StoreObject

Available on crate feature seasonal-season-1 only.
source§

fn from(v: ScoreCollector) -> StoreObject

Converts to this type from the input type.
source§

impl From<ScoreContainer> for StoreObject

Available on crate feature seasonal-season-1 only.
source§

fn from(v: ScoreContainer) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureContainer> for StoreObject

source§

fn from(v: StructureContainer) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureExtension> for StoreObject

source§

fn from(v: StructureExtension) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureFactory> for StoreObject

source§

fn from(v: StructureFactory) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureLab> for StoreObject

source§

fn from(v: StructureLab) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureLink> for StoreObject

source§

fn from(v: StructureLink) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureNuker> for StoreObject

source§

fn from(v: StructureNuker) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructurePowerSpawn> for StoreObject

source§

fn from(v: StructurePowerSpawn) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureSpawn> for StoreObject

source§

fn from(v: StructureSpawn) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureStorage> for StoreObject

source§

fn from(v: StructureStorage) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureTerminal> for StoreObject

source§

fn from(v: StructureTerminal) -> StoreObject

Converts to this type from the input type.
source§

impl From<StructureTower> for StoreObject

source§

fn from(v: StructureTower) -> StoreObject

Converts to this type from the input type.
source§

impl From<SymbolContainer> for StoreObject

Available on crate feature seasonal-season-2 only.
source§

fn from(v: SymbolContainer) -> StoreObject

Converts to this type from the input type.
source§

impl From<Tombstone> for StoreObject

source§

fn from(v: Tombstone) -> StoreObject

Converts to this type from the input type.
source§

impl HasStore for StoreObject

source§

fn store(&self) -> Store

The store of the object, containing information about the resources it is holding.

source§

impl TryFrom<StructureObject> for StoreObject

§

type Error = StoreObjectConversionError

The type returned in the event of a conversion error.
source§

fn try_from(structure: StructureObject) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryInto<Creep> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Creep, <Self as TryInto<Creep>>::Error>

Performs the conversion.
source§

impl TryInto<PowerCreep> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<PowerCreep, <Self as TryInto<PowerCreep>>::Error>

Performs the conversion.
source§

impl TryInto<Ruin> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Ruin, <Self as TryInto<Ruin>>::Error>

Performs the conversion.
source§

impl TryInto<ScoreCollector> for StoreObject

Available on crate feature seasonal-season-1 only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<ScoreCollector, <Self as TryInto<ScoreCollector>>::Error>

Performs the conversion.
source§

impl TryInto<ScoreContainer> for StoreObject

Available on crate feature seasonal-season-1 only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<ScoreContainer, <Self as TryInto<ScoreContainer>>::Error>

Performs the conversion.
source§

impl TryInto<StructureContainer> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureContainer, <Self as TryInto<StructureContainer>>::Error>

Performs the conversion.
source§

impl TryInto<StructureExtension> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureExtension, <Self as TryInto<StructureExtension>>::Error>

Performs the conversion.
source§

impl TryInto<StructureFactory> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureFactory, <Self as TryInto<StructureFactory>>::Error>

Performs the conversion.
source§

impl TryInto<StructureLab> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureLab, <Self as TryInto<StructureLab>>::Error>

Performs the conversion.
source§

impl TryInto<StructureLink> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureLink, <Self as TryInto<StructureLink>>::Error>

Performs the conversion.
source§

impl TryInto<StructureNuker> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureNuker, <Self as TryInto<StructureNuker>>::Error>

Performs the conversion.
source§

impl TryInto<StructurePowerSpawn> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructurePowerSpawn, <Self as TryInto<StructurePowerSpawn>>::Error>

Performs the conversion.
source§

impl TryInto<StructureSpawn> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureSpawn, <Self as TryInto<StructureSpawn>>::Error>

Performs the conversion.
source§

impl TryInto<StructureStorage> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureStorage, <Self as TryInto<StructureStorage>>::Error>

Performs the conversion.
source§

impl TryInto<StructureTerminal> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureTerminal, <Self as TryInto<StructureTerminal>>::Error>

Performs the conversion.
source§

impl TryInto<StructureTower> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<StructureTower, <Self as TryInto<StructureTower>>::Error>

Performs the conversion.
source§

impl TryInto<SymbolContainer> for StoreObject

Available on crate feature seasonal-season-2 only.
§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<SymbolContainer, <Self as TryInto<SymbolContainer>>::Error>

Performs the conversion.
source§

impl TryInto<Tombstone> for StoreObject

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Tombstone, <Self as TryInto<Tombstone>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.