#[non_exhaustive]pub struct ProxyMessage {
pub op_id: Option<Base64Uuid>,
pub payload: ProxyMessagePayload,
}Expand description
Messages sent from the Proxy
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.op_id: Option<Base64Uuid>§payload: ProxyMessagePayloadImplementations§
Source§impl ProxyMessage
impl ProxyMessage
Source§impl ProxyMessage
impl ProxyMessage
pub fn new_error_response(error: Error, op_id: Base64Uuid) -> Self
pub fn new_invoke_proxy_response(data: Vec<u8>, op_id: Base64Uuid) -> Self
pub fn new_create_cells_response( cells: Result<Vec<Cell>, Error>, op_id: Base64Uuid, ) -> Self
pub fn new_extract_data_response( data: Result<Blob, Error>, op_id: Base64Uuid, ) -> Self
pub fn new_config_schema_response( schema: ConfigSchema, op_id: Base64Uuid, ) -> Self
pub fn new_supported_query_types_response( queries: Vec<SupportedQueryType>, op_id: Base64Uuid, ) -> Self
pub fn new_set_data_sources_notification( data_sources: Vec<UpsertProxyDataSource>, ) -> Self
Source§impl ProxyMessage
impl ProxyMessage
pub fn deserialize_msgpack( input: impl AsRef<[u8]>, ) -> Result<ProxyMessage, Error>
pub fn serialize_msgpack(&self) -> Vec<u8> ⓘ
pub fn op_id(&self) -> Option<Base64Uuid>
Trait Implementations§
Source§impl Debug for ProxyMessage
impl Debug for ProxyMessage
Source§impl<'de> Deserialize<'de> for ProxyMessage
impl<'de> Deserialize<'de> for ProxyMessage
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<(ErrorMessage, Base64Uuid)> for ProxyMessage
impl From<(ErrorMessage, Base64Uuid)> for ProxyMessage
Source§fn from((message, op_id): (ErrorMessage, Base64Uuid)) -> Self
fn from((message, op_id): (ErrorMessage, Base64Uuid)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ProxyMessage
impl RefUnwindSafe for ProxyMessage
impl Send for ProxyMessage
impl Sync for ProxyMessage
impl Unpin for ProxyMessage
impl UnsafeUnpin for ProxyMessage
impl UnwindSafe for ProxyMessage
Blanket Implementations§
impl<T> BindgenSerializable for T
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