work
This commit is contained in:
@@ -9,7 +9,7 @@ pub enum ClientMsg {
|
||||
|
||||
#[derive(Debug)]
|
||||
pub enum ServerMsg {
|
||||
AccountCreated(AccountCreated),
|
||||
CreateAccount(CreateAccountResp),
|
||||
LoadMsg(LoadMsg),
|
||||
LoadMsgs(Vec<LoadMsg>),
|
||||
ServerError(ServerError),
|
||||
@@ -20,7 +20,7 @@ pub type SendMsg = SendMsgV0;
|
||||
pub type LoadMsg = LoadMsgV0;
|
||||
pub type ServerError = ServerErrorV0;
|
||||
pub type CreateAccount = CreateAccountV0;
|
||||
pub type AccountCreated = AccountCreatedV0;
|
||||
pub type CreateAccountResp = CreateAccountRespV0;
|
||||
pub type UserId = UserIdV0;
|
||||
|
||||
impl From<CreateAccount> for ClientMsg {
|
||||
@@ -41,8 +41,8 @@ impl From<LoadMsg> for ServerMsg {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<AccountCreated> for ServerMsg {
|
||||
fn from(value: AccountCreated) -> Self {
|
||||
Self::AccountCreated(value)
|
||||
impl From<CreateAccountResp> for ServerMsg {
|
||||
fn from(value: CreateAccountResp) -> Self {
|
||||
Self::CreateAccount(value)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user