pub struct LobbyUpdateRequest {
pub command_id: Value,
pub data: LobbyUpdateRequestData,
pub message_id: String,
pub type_: Value,
}Expand description
LobbyUpdateRequest
JSON schema
{
"title": "LobbyUpdateRequest",
"type": "object",
"required": [
"commandId",
"data",
"messageId",
"type"
],
"properties": {
"commandId": {
"const": "lobby/update"
},
"data": {
"title": "LobbyUpdateRequestData",
"type": "object",
"properties": {
"allyTeamConfig": {
"$ref": "#/definitions/allyTeamConfig"
},
"gameOptions": {
"description": "Set to null to remove a game option",
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string"
}
}
},
{
"type": "null"
}
]
}
}
},
"mapName": {
"type": "string"
},
"name": {
"description": "to rename the lobby",
"type": "string"
},
"tags": {
"description": "Set to null to remove a tag",
"type": "object",
"patternProperties": {
"^.*$": {
"anyOf": [
{
"type": "object"
},
{
"type": "null"
}
]
}
}
}
}
},
"messageId": {
"type": "string"
},
"type": {
"const": "request"
}
},
"tachyon": {
"scopes": [
"tachyon.lobby"
],
"source": "user",
"target": "server"
}
}Fields§
§command_id: Value§data: LobbyUpdateRequestData§message_id: String§type_: ValueImplementations§
Source§impl LobbyUpdateRequest
impl LobbyUpdateRequest
pub fn builder() -> LobbyUpdateRequest
Trait Implementations§
Source§impl Clone for LobbyUpdateRequest
impl Clone for LobbyUpdateRequest
Source§fn clone(&self) -> LobbyUpdateRequest
fn clone(&self) -> LobbyUpdateRequest
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 LobbyUpdateRequest
impl Debug for LobbyUpdateRequest
Source§impl<'de> Deserialize<'de> for LobbyUpdateRequest
impl<'de> Deserialize<'de> for LobbyUpdateRequest
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<LobbyUpdateRequest> for LobbyUpdateRequest
impl From<LobbyUpdateRequest> for LobbyUpdateRequest
Source§fn from(value: LobbyUpdateRequest) -> Self
fn from(value: LobbyUpdateRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for LobbyUpdateRequest
impl Serialize for LobbyUpdateRequest
Source§impl TryFrom<LobbyUpdateRequest> for LobbyUpdateRequest
impl TryFrom<LobbyUpdateRequest> for LobbyUpdateRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: LobbyUpdateRequest) -> Result<Self, ConversionError>
fn try_from(value: LobbyUpdateRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for LobbyUpdateRequest
impl RefUnwindSafe for LobbyUpdateRequest
impl Send for LobbyUpdateRequest
impl Sync for LobbyUpdateRequest
impl Unpin for LobbyUpdateRequest
impl UnsafeUnpin for LobbyUpdateRequest
impl UnwindSafe for LobbyUpdateRequest
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