pub struct InitConnectionBody {
pub desired_queries_patch: UpQueriesPatch,
pub client_schema: Option<ClientSchema>,
pub deleted: Option<DeleteClientsBody>,
pub user_push_url: Option<String>,
pub user_push_headers: Option<Vec<(String, String)>>,
pub user_query_url: Option<String>,
pub user_query_headers: Option<Vec<(String, String)>>,
pub active_clients: Option<Vec<String>>,
pub traceparent: Option<String>,
}Expand description
The first message a client sends, usually in the Sec-WebSocket-Protocol
header (initConnectionBodySchema).
Fields§
§desired_queries_patch: UpQueriesPatch§client_schema: Option<ClientSchema>Sent only when the client has no server snapshot yet: the schema can be large, and zero-cache keeps it for the client group.
deleted: Option<DeleteClientsBody>§user_push_url: Option<String>The push endpoint of the API server.
user_push_headers: Option<Vec<(String, String)>>§user_query_url: Option<String>The query endpoint of the API server.
user_query_headers: Option<Vec<(String, String)>>§active_clients: Option<Vec<String>>The client IDs running in the client group, so zero-cache can inactivate the queries of the others.
traceparent: Option<String>A W3C traceparent header for distributed tracing.
Trait Implementations§
Source§impl Clone for InitConnectionBody
impl Clone for InitConnectionBody
Source§impl Debug for InitConnectionBody
impl Debug for InitConnectionBody
Source§impl Default for InitConnectionBody
impl Default for InitConnectionBody
Source§impl JsonCodable for InitConnectionBody
impl JsonCodable for InitConnectionBody
Source§impl PartialEq for InitConnectionBody
impl PartialEq for InitConnectionBody
impl StructuralPartialEq for InitConnectionBody
Auto Trait Implementations§
impl Forget for InitConnectionBody
impl Freeze for InitConnectionBody
impl Move for InitConnectionBody
impl RefUnwindSafe for InitConnectionBody
impl Send for InitConnectionBody
impl Sync for InitConnectionBody
impl Unpin for InitConnectionBody
impl UnsafeUnpin for InitConnectionBody
impl UnwindSafe for InitConnectionBody
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