WS client fix.
This commit is contained in:
@@ -13,7 +13,7 @@ use crate::{
|
|||||||
core::{
|
core::{
|
||||||
error::{ProblemDetails, ProblemType},
|
error::{ProblemDetails, ProblemType},
|
||||||
request::{Arguments, Request},
|
request::{Arguments, Request},
|
||||||
response::{MethodResponse, Response},
|
response::{Response, TaggedMethodResponse},
|
||||||
},
|
},
|
||||||
event_source::Changes,
|
event_source::Changes,
|
||||||
Method, StateChangeType, TypeState, URI,
|
Method, StateChangeType, TypeState, URI,
|
||||||
@@ -46,7 +46,7 @@ pub struct WebSocketResponse {
|
|||||||
request_id: Option<String>,
|
request_id: Option<String>,
|
||||||
|
|
||||||
#[serde(rename = "methodResponses")]
|
#[serde(rename = "methodResponses")]
|
||||||
method_responses: Vec<MethodResponse>,
|
method_responses: Vec<TaggedMethodResponse>,
|
||||||
|
|
||||||
#[serde(rename = "createdIds")]
|
#[serde(rename = "createdIds")]
|
||||||
created_ids: Option<HashMap<String, String>>,
|
created_ids: Option<HashMap<String, String>>,
|
||||||
@@ -141,7 +141,7 @@ enum WebSocketMessage_ {
|
|||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum WebSocketMessage {
|
pub enum WebSocketMessage {
|
||||||
Response(Response<MethodResponse>),
|
Response(Response<TaggedMethodResponse>),
|
||||||
StateChange(Changes),
|
StateChange(Changes),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user