pub struct CooldownSchema {
pub total_seconds: i32,
pub remaining_seconds: i32,
pub started_at: String,
pub expiration: String,
pub reason: ActionType,
}Fields§
§total_seconds: i32The total seconds of the cooldown.
remaining_seconds: i32The remaining seconds of the cooldown.
started_at: StringThe start of the cooldown.
expiration: StringThe expiration of the cooldown.
reason: ActionTypeThe reason of the cooldown.
Implementations§
Source§impl CooldownSchema
impl CooldownSchema
pub fn new( total_seconds: i32, remaining_seconds: i32, started_at: String, expiration: String, reason: ActionType, ) -> CooldownSchema
Trait Implementations§
Source§impl Clone for CooldownSchema
impl Clone for CooldownSchema
Source§fn clone(&self) -> CooldownSchema
fn clone(&self) -> CooldownSchema
Returns a duplicate 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 Debug for CooldownSchema
impl Debug for CooldownSchema
Source§impl Default for CooldownSchema
impl Default for CooldownSchema
Source§fn default() -> CooldownSchema
fn default() -> CooldownSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CooldownSchema
impl<'de> Deserialize<'de> for CooldownSchema
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 CooldownSchema
impl PartialEq for CooldownSchema
Source§impl Serialize for CooldownSchema
impl Serialize for CooldownSchema
impl StructuralPartialEq for CooldownSchema
Auto Trait Implementations§
impl Freeze for CooldownSchema
impl RefUnwindSafe for CooldownSchema
impl Send for CooldownSchema
impl Sync for CooldownSchema
impl Unpin for CooldownSchema
impl UnwindSafe for CooldownSchema
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