pub struct FortressAction<T> {
pub start: Option<DateTime<Local>>,
pub finish: Option<DateTime<Local>>,
pub cost: FortressCost,
pub target: Option<T>,
}
Expand description
An action, that costs some amount of resources to do and will finish at a certain point in time
Fields§
§start: Option<DateTime<Local>>
When this action was started. This can be months in the past, as this will often not be cleared by the server
finish: Option<DateTime<Local>>
Wheen this action will be finished
cost: FortressCost
The amount of resources it costs to do this
target: Option<T>
If it is not clear from the place where this is located, this will contain the specific type, that this action will be applied to/for
Trait Implementations§
Source§impl<T: Clone> Clone for FortressAction<T>
impl<T: Clone> Clone for FortressAction<T>
Source§fn clone(&self) -> FortressAction<T>
fn clone(&self) -> FortressAction<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for FortressAction<T>
impl<T: Debug> Debug for FortressAction<T>
Source§impl<T> Default for FortressAction<T>
impl<T> Default for FortressAction<T>
Source§impl<'de, T> Deserialize<'de> for FortressAction<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for FortressAction<T>where
T: Deserialize<'de>,
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<T> Serialize for FortressAction<T>where
T: Serialize,
impl<T> Serialize for FortressAction<T>where
T: Serialize,
impl<T: Copy> Copy for FortressAction<T>
Auto Trait Implementations§
impl<T> Freeze for FortressAction<T>where
T: Freeze,
impl<T> RefUnwindSafe for FortressAction<T>where
T: RefUnwindSafe,
impl<T> Send for FortressAction<T>where
T: Send,
impl<T> Sync for FortressAction<T>where
T: Sync,
impl<T> Unpin for FortressAction<T>where
T: Unpin,
impl<T> UnwindSafe for FortressAction<T>where
T: UnwindSafe,
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