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