pub struct Cooldown {
pub ship_symbol: String,
pub total_seconds: u32,
pub remaining_seconds: u32,
pub expiration: Option<String>,
}Expand description
A cooldown is a period of time in which a ship cannot perform certain actions.
Fields§
§ship_symbol: StringThe symbol of the ship that is on cooldown
total_seconds: u32The total duration of the cooldown in seconds
remaining_seconds: u32The remaining duration of the cooldown in seconds
expiration: Option<String>The date and time when the cooldown expires in ISO 8601 format
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cooldown
impl<'de> Deserialize<'de> for Cooldown
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
impl StructuralPartialEq for Cooldown
Auto Trait Implementations§
impl Freeze for Cooldown
impl RefUnwindSafe for Cooldown
impl Send for Cooldown
impl Sync for Cooldown
impl Unpin for Cooldown
impl UnwindSafe for Cooldown
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