You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But unfortunately, this doesn't work because OwnedStructure does not have a .as_has_store() method. Only Structure does. OwnedStructure does seem to have a .as_structure() method to make it into a Structure, but that one doesn't work on &OwnedStructure. But I don't get a OwnedStructure, filter() only gives me &OwnedStructure. What is the recommended way of getting the free energy capacity of a structure I own?
The text was updated successfully, but these errors were encountered:
.clone().as_structure() worked for me, closing this for now.
But I think it would be a better API if OwnedStructure had as_has_store() (and the other related functions) available without having to cast it to Structure.
I use this code to find my structures that can be a delivery destination for energy:
But unfortunately, this doesn't work because
OwnedStructure
does not have a.as_has_store()
method. OnlyStructure
does.OwnedStructure
does seem to have a.as_structure()
method to make it into aStructure
, but that one doesn't work on&OwnedStructure
. But I don't get aOwnedStructure
,filter()
only gives me&OwnedStructure
. What is the recommended way of getting the free energy capacity of a structure I own?The text was updated successfully, but these errors were encountered: