pub struct LobbyUpdatedEventDataCurrentBattle {
pub id: String,
pub started_at: UnixTime,
}Expand description
If a battle is currently happening, here are the info
JSON schema
{
"description": "If a battle is currently happening, here are the info",
"type": "object",
"required": [
"id",
"startedAt"
],
"properties": {
"id": {
"type": "string"
},
"startedAt": {
"$ref": "#/definitions/unixTime"
}
}
}Fields§
§id: String§started_at: UnixTimeImplementations§
Trait Implementations§
Source§impl Clone for LobbyUpdatedEventDataCurrentBattle
impl Clone for LobbyUpdatedEventDataCurrentBattle
Source§fn clone(&self) -> LobbyUpdatedEventDataCurrentBattle
fn clone(&self) -> LobbyUpdatedEventDataCurrentBattle
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<'de> Deserialize<'de> for LobbyUpdatedEventDataCurrentBattle
impl<'de> Deserialize<'de> for LobbyUpdatedEventDataCurrentBattle
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 From<LobbyUpdatedEventDataCurrentBattle> for LobbyUpdatedEventDataCurrentBattle
impl From<LobbyUpdatedEventDataCurrentBattle> for LobbyUpdatedEventDataCurrentBattle
Source§fn from(value: LobbyUpdatedEventDataCurrentBattle) -> Self
fn from(value: LobbyUpdatedEventDataCurrentBattle) -> Self
Converts to this type from the input type.
Source§impl TryFrom<LobbyUpdatedEventDataCurrentBattle> for LobbyUpdatedEventDataCurrentBattle
impl TryFrom<LobbyUpdatedEventDataCurrentBattle> for LobbyUpdatedEventDataCurrentBattle
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: LobbyUpdatedEventDataCurrentBattle,
) -> Result<Self, ConversionError>
fn try_from( value: LobbyUpdatedEventDataCurrentBattle, ) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LobbyUpdatedEventDataCurrentBattle
impl RefUnwindSafe for LobbyUpdatedEventDataCurrentBattle
impl Send for LobbyUpdatedEventDataCurrentBattle
impl Sync for LobbyUpdatedEventDataCurrentBattle
impl Unpin for LobbyUpdatedEventDataCurrentBattle
impl UnsafeUnpin for LobbyUpdatedEventDataCurrentBattle
impl UnwindSafe for LobbyUpdatedEventDataCurrentBattle
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